/* ================================================
   Supplier Portal — Login Page Styles
   Logo: /images/logo.png (used as-is, never deformed)
   Brand Colors: Orange #FF6B35, Deep Gray #2D2D2D
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F5F6F8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* ================================================
   PAGE WRAPPER
   ================================================ */
.login-page {
    display: flex;
    width: 900px;
    max-width: 95vw;
    min-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ================================================
   LEFT BRAND PANEL — Deep gray with geometric art
   ================================================ */
.brand-panel {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #ffffff 0%, #f7f8fa 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

/* ---- Abstract geometric blocks (not logo, pure decoration) ---- */
.geo-block {
    position: absolute;
    border-radius: 8px;
    pointer-events: none;
}

.geo-block-1 {
    width: 200px;
    height: 200px;
    background: #FF6B35;
    opacity: 0.18;
    top: -60px;
    left: -70px;
    transform: rotate(25deg);
    border-radius: 16px;
}

.geo-block-2 {
    width: 140px;
    height: 140px;
    background: #2D2D2D;
    opacity: 0.06;
    top: 40px;
    right: -40px;
    transform: rotate(15deg);
    border-radius: 12px;
}

.geo-block-3 {
    width: 100px;
    height: 100px;
    background: #FF6B35;
    opacity: 0.12;
    bottom: 60px;
    left: -30px;
    transform: rotate(-20deg);
    border-radius: 50%;
}

.geo-block-4 {
    width: 80px;
    height: 80px;
    background: #444;
    opacity: 0.08;
    bottom: -20px;
    right: 60px;
    transform: rotate(40deg);
    border-radius: 10px;
}

.geo-block-5 {
    width: 60px;
    height: 60px;
    background: #FF6B35;
    opacity: 0.25;
    top: 50%;
    left: 30px;
    transform: rotate(60deg);
    border-radius: 6px;
}

.geo-block-6 {
    width: 120px;
    height: 30px;
    background: #FF6B35;
    opacity: 0.1;
    top: 120px;
    right: -30px;
    transform: rotate(-10deg);
    border-radius: 4px;
}

/* ---- Blurred logo watermark ---- */
.logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: url('/images/logo.png') center / contain no-repeat;
    opacity: 0.05;
    filter: blur(6px);
    pointer-events: none;
}

/* ---- Logo — exactly as-is, no deformation ---- */
.brand-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 0; /* no rounding, no border, no shadow */
}

.brand-title {
    font-size: 30px;
    font-weight: 700;
    color: #2D2D2D;
    letter-spacing: 3px;
    margin-top: 20px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.brand-sub {
    font-size: 11px;
    color: rgba(45, 45, 45, 0.5);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.accent-line {
    width: 44px;
    height: 3px;
    background: #FF6B35;
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.brand-slogan {
    font-size: 13px;
    color: rgba(45, 45, 45, 0.6);
    line-height: 1.9;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ================================================
   RIGHT FORM PANEL — Clean white
   ================================================ */
.form-panel {
    flex: 1;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    background: #fff;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.form-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #2D2D2D;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #c0c0c0;
}

.form-group input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

/* ---- Orange login button ---- */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #FF6B35;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 2px;
}

.btn-login:hover {
    background: #e55a27;
}

.btn-login:active {
    transform: scale(0.985);
}

/* ---- Error message ---- */
.error-msg {
    color: #c0392b;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    display: none;
    padding: 9px 14px;
    background: #fdf0ef;
    border-radius: 8px;
    border: 1px solid #f5c6c2;
}

.form-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

/* ================================================
   RESPONSIVE — Mobile
   ================================================ */
@media (max-width: 700px) {
    .login-page {
        flex-direction: column;
        max-width: 420px;
        min-height: unset;
    }

    .brand-panel {
        width: 100%;
        padding: 36px 28px 28px;
        min-height: 220px;
    }

    .brand-panel .geo-block-3,
    .brand-panel .geo-block-4,
    .brand-panel .geo-block-5,
    .brand-panel .geo-block-6 {
        display: none;
    }

    .brand-logo {
        width: 150px;
        height: auto;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-slogan {
        display: none;
    }

    .form-panel {
        padding: 28px 24px;
    }
}
