﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3a5f;
    --primary-light: #4a7ec7;
    --accent-color: #f39c12;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-overlay: rgba(44, 90, 160, 0.95);
    --border-color: #e1e8ed;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --google-blue: #4285f4;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.24);
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/Images/customer.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(30, 58, 95, 0.9) 100%);
        z-index: -1;
    }

/* Main Container */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 30px);
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Column - Company Section */
.company-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3vh 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .company-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
        animation: rotate 30s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.company-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    animation: fadeIn 0.8s ease-out 0.2s backwards;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-container {
    margin-bottom: 1.5vh;
}

.company-logo {
    width: clamp(50px, 8vh, 100px);
    height: clamp(50px, 8vh, 100px);
    background: var(--bg-primary);
    border-radius: 15px;
    padding: clamp(8px, 1vh, 15px);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 2.5vh, 28px);
    font-weight: 700;
    margin-bottom: 0.5vh;
    line-height: 1.2;
}

.company-tagline {
    font-size: clamp(11px, 1.5vh, 15px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2vh;
    letter-spacing: 0.5px;
}

.company-info {
    margin-bottom: 2vh;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2vh;
    transition: all 0.3s ease;
}

    .info-item.clickable {
        cursor: pointer;
        padding: 0.5vh 0.5vw;
        margin-left: -0.5vw;
        border-radius: 8px;
    }

        .info-item.clickable:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: clamp(10px, 1.3vh, 13px);
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.4;
    transition: all 0.3s ease;
}

    .contact-link:hover {
        opacity: 1;
        color: var(--accent-color);
    }

.address-text {
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: clamp(10px, 1.3vh, 13px);
}

.info-item.clickable:hover .address-text {
    color: var(--accent-color);
}

.info-item .icon {
    width: clamp(14px, 2vh, 20px);
    height: clamp(14px, 2vh, 20px);
    margin-right: clamp(8px, 1vw, 12px);
    flex-shrink: 0;
    opacity: 0.8;
}

.info-item h3 {
    font-size: clamp(10px, 1.3vh, 13px);
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.9;
}

.info-item p {
    font-size: clamp(10px, 1.3vh, 13px);
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.3;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1vw, 15px);
    margin-top: 2vh;
    padding-top: 1.5vh;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.badge {
    text-align: center;
}

.badge-number {
    display: block;
    font-size: clamp(14px, 2.2vh, 24px);
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.badge-label {
    display: block;
    font-size: clamp(8px, 1vh, 11px);
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right Column - Login Section */
.login-section {
    padding: 3vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* Step Panels */
.step-panel {
    animation: fadeIn 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5vh;
}

    .login-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(20px, 3vh, 32px);
        color: var(--text-primary);
        margin-bottom: 0.5vh;
    }

    .login-header p {
        color: var(--text-secondary);
        font-size: clamp(12px, 1.5vh, 15px);
    }

/* Customer Badge */
.customer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.customer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .customer-icon svg {
        width: 100%;
        height: 100%;
        stroke: var(--text-light);
    }

.customer-name-display {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

.change-customer-link {
    color: var(--accent-color);
    font-size: 12px;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

    .change-customer-link:hover {
        background: rgba(255,255,255,0.2);
        color: var(--text-light);
    }

/* OTP Icon */
.otp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

    .otp-icon svg {
        width: 30px;
        height: 30px;
        stroke: var(--text-light);
    }

.otp-email {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.8vh;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5vh;
        color: var(--text-primary);
        font-size: clamp(11px, 1.4vh, 14px);
        font-weight: 500;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-select {
        width: 100%;
        padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1vw, 14px);
        border: 2px solid var(--border-color);
        border-radius: 10px;
        font-size: clamp(12px, 1.4vh, 14px);
        font-family: 'Poppins', sans-serif;
        transition: all 0.3s ease;
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

        .form-group input:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary-color);
            background: var(--bg-primary);
            box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
        }

    .form-group input::placeholder {
        color: #a0aec0;
        font-size: clamp(11px, 1.3vh, 13px);
    }

/* OTP Input */
.otp-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1vw, 15px);
    margin-bottom: 1.8vh;
}

.form-group.half {
    margin-bottom: 0;
}

.remember-section {
    margin-bottom: 1.5vh;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    font-size: clamp(11px, 1.3vh, 13px);
    color: var(--text-secondary);
}

    .remember-checkbox input[type="checkbox"] {
        width: clamp(14px, 1.6vh, 16px);
        height: clamp(14px, 1.6vh, 16px);
        margin-right: 8px;
        cursor: pointer;
        accent-color: var(--primary-color);
    }

/* Messages */
.error-message {
    display: block;
    color: var(--error-color);
    font-size: clamp(11px, 1.3vh, 13px);
    margin-bottom: 1.5vh;
    padding: clamp(8px, 1vh, 12px);
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--error-color);
}

.success-message {
    display: block;
    color: var(--success-color);
    font-size: clamp(11px, 1.3vh, 13px);
    margin-bottom: 1.5vh;
    padding: clamp(8px, 1vh, 12px);
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid var(--success-color);
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: clamp(10px, 1.4vh, 14px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: clamp(13px, 1.5vh, 15px);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.35);
    position: relative;
    overflow: hidden;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(44, 90, 160, 0.45);
    }

        .btn-login:hover::before {
            left: 100%;
        }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 12px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

    .divider span {
        padding: 0 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* Google Sign-In Button - Professional Style */
.social-login {
    margin-bottom: 15px;
}

.btn-google {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.25px;
}

    .btn-google:hover {
        background: #f8f9fa;
        border-color: #c6c6c6;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transform: none;
    }

    .btn-google:active {
        background: #f1f3f4;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .btn-google:focus {
        outline: none;
        border-color: #4285f4;
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    }

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.resend-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

    .resend-link:hover {
        text-decoration: underline;
    }

.login-footer {
    text-align: center;
    margin-top: 1.5vh;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(11px, 1.3vh, 13px);
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.version-info {
    position: absolute;
    bottom: 1vh;
    right: 1.5vw;
    font-size: clamp(9px, 1.1vh, 11px);
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-height: 750px) and (min-width: 969px) {
    .company-info {
        margin-bottom: 1.5vh;
    }

    .info-item {
        margin-bottom: 0.8vh;
    }

        .info-item h3 {
            display: none;
        }

    .trust-badges {
        margin-top: 1.5vh;
        padding-top: 1vh;
    }
}

@media (max-height: 650px) and (min-width: 969px) {
    .company-section,
    .login-section {
        padding: 2vh 2.5vw;
    }

    .logo-container {
        margin-bottom: 1vh;
    }

    .company-logo {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .company-name {
        font-size: 18px;
    }

    .company-tagline {
        font-size: 11px;
        margin-bottom: 1.5vh;
    }

    .info-item {
        margin-bottom: 0.6vh;
    }

        .info-item .icon {
            width: 14px;
            height: 14px;
        }

        .info-item h3 {
            display: none;
        }

    .trust-badges {
        margin-top: 1vh;
        padding-top: 1vh;
        gap: 8px;
    }

    .badge-number {
        font-size: 16px;
    }

    .badge-label {
        font-size: 8px;
    }

    .login-header {
        margin-bottom: 1.5vh;
    }

        .login-header h2 {
            font-size: 22px;
        }

    .customer-badge {
        padding: 8px 15px;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 1.2vh;
    }

        .form-group label {
            font-size: 11px;
            margin-bottom: 0.3vh;
        }

        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-select {
            padding: 8px 10px;
            font-size: 12px;
        }

    .btn-login {
        padding: 10px;
        font-size: 13px;
    }

    .divider {
        margin: 12px 0;
    }

    .btn-google {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-height: 550px) and (min-width: 969px) {
    body {
        padding: 10px;
    }

    .company-section,
    .login-section {
        padding: 1.5vh 2vw;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .company-name {
        font-size: 16px;
    }

    .company-tagline {
        font-size: 10px;
        margin-bottom: 1vh;
    }

    .company-info {
        margin-bottom: 1vh;
    }

    .trust-badges {
        margin-top: 0.8vh;
        padding-top: 0.8vh;
    }

    .badge-number {
        font-size: 14px;
    }

    .badge-label {
        font-size: 7px;
    }

    .login-header {
        margin-bottom: 1vh;
    }

        .login-header h2 {
            font-size: 20px;
        }

    .customer-badge {
        padding: 6px 12px;
        margin-bottom: 8px;
    }

    .customer-name-display {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 1vh;
    }

        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-select {
            padding: 6px 8px;
            font-size: 11px;
        }

    .btn-login {
        padding: 8px;
        font-size: 12px;
    }

    .divider {
        margin: 8px 0;
        font-size: 10px;
    }

    .btn-google {
        padding: 8px;
        font-size: 12px;
    }
}

/* Tablet and below */
@media (max-width: 968px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        max-height: none;
    }

    .company-section {
        padding: 25px 20px;
    }

    .company-content {
        text-align: center;
    }

    .company-logo {
        width: 60px;
        height: 60px;
    }

    .company-name {
        font-size: 22px;
    }

    .company-info {
        display: none;
    }

    .trust-badges {
        margin-top: 15px;
        padding-top: 15px;
    }

    .login-section {
        padding: 30px 25px;
    }

    .login-header {
        margin-bottom: 25px;
    }

        .login-header h2 {
            font-size: 26px;
        }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 18px;
    }

        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-select {
            padding: 12px 14px;
            font-size: 14px;
        }

    .btn-login {
        padding: 14px;
        font-size: 14px;
    }

    .version-info {
        position: relative;
        text-align: center;
        margin-top: 20px;
        bottom: auto;
        right: auto;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    body {
        padding: 8px;
    }

    .company-section {
        padding: 20px 15px;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .company-name {
        font-size: 18px;
    }

    .login-section {
        padding: 25px 18px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .customer-badge {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
}

/* Landscape mobile */
@media (max-height: 450px) and (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .company-section {
        padding: 15px;
    }

    .company-content {
        text-align: left;
    }

    .trust-badges {
        display: none;
    }

    .login-section {
        padding: 15px;
    }

    .login-header {
        margin-bottom: 10px;
    }

        .login-header h2 {
            font-size: 18px;
        }

    .form-group {
        margin-bottom: 8px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 8px;
    }

    .divider {
        margin: 8px 0;
    }

    .btn-google {
        padding: 8px;
    }
}
