/* ============================================ */
/*  🎨 Order Intel - Auth Pages (Login & Signup) */
/* ============================================ */

body {
    background-color: var(--color-primary, #003366);
    color: var(--color-light-text, #ffffff);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    /* Rich radial gradient background */
    background: radial-gradient(circle at top left, #003366, #004080, #215991, #1c6dbe);
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* ============================================ */
/*  🔑 SIGN IN PAGE STYLES                      */
/* ============================================ */

.login {
    color: var(--color-light-text, #ffffff);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.signin-pg-logo img {
    max-width: 225px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.signin-heading {
    font-size: clamp(28px, 5vw, 47px);
    font-weight: bold;
    margin-bottom: 6px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

.signin-msg {
    font-size: clamp(15px, 2.5vw, 22px);
    margin-bottom: 20px;
    text-align: center;
}

.login-inputs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 534px;
    margin-bottom: 16px;
}

.login-inputs input {
    border-radius: 35px;
    width: 100%;
    max-width: 534px;
    height: 59px;
    padding: 0 25px;
    font-size: 18px;
    border: none;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    color: #000;
}

.login-inputs input::placeholder {
    opacity: 1;
    color: rgb(189, 186, 186); 
}

.login-inputs input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.auth-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 534px;
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 24px;
    gap: 15px;
    flex-wrap: wrap;
}

.remember {
    display: inline-flex;
    align-items: center;
    padding: 0;
    user-select: none;
    cursor: pointer;
    font-size: 15px;
}

.remember input[type="checkbox"] {
    display: none;
}

.remember span {
    height: 18px;
    width: 18px;
    border: 2px solid var(--color-grey-light, rgba(255,255,255,0.6));
    border-radius: 50%;
    display: inline-block;
    position: relative;
    background: transparent;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.remember input[type="checkbox"]:checked + span::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-size: 15px;
}

.forgot:hover {
    text-decoration: underline;
}

.login-btn-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 534px;
    flex-wrap: wrap;
}

.login-btn {
    height: 59px;
    background: #ffffff;
    border-radius: 35px;
    border: none;
    min-width: 134px;
    padding: 0 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-secondary, #1c6dbe);
    box-shadow: 0 0 9px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.8);
}


/* ============================================ */
/*  📝 SIGN UP PAGE STYLES                      */
/* ============================================ */

.signup-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

.signup {
    color: #ffffff;
    width: 100%;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    border-radius: 30px;
    padding: 45px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup .signin-pg-logo img {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.signup .signin-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 6px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    color: #ffffff;
}

.signup .signin-msg {
    font-size: clamp(14px, 2vw, 18px);
    margin-bottom: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Signup Grid System --- */
.signup-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}

/* Row 1: Profile picture + Name */
.row-profile-name {
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 24px;
}

.name-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.signup-field {
    border-radius: 35px;
    width: 100%;
    height: 56px;
    padding-left: 25px;
    padding-right: 25px;
    font-size: 16px;
    border: 2px solid transparent;
    outline: none;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    transition: all 0.25s ease;
}

.signup-field::placeholder {
    opacity: 1;
    color: #b0b0b0; 
}

.signup-field:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.signup-field.input-valid {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4) !important;
}

.signup-field.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6) !important;
}

.password-container {
    position: relative;
}

.password-container .signup-field {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 28px;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #1a1a1a;
}

.validation-status-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.password-container .validation-status-icon {
    right: 55px;
}

/* --- Password Strength Meter --- */
.strength-meter {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-left: 15px;
    width: 100%;
    box-sizing: border-box;
}

.strength-bar {
    height: 4px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.strength-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    min-width: 60px;
    text-align: right;
}

.strength-meter.weak .strength-bar::before {
    width: 33.3%;
    background-color: #ff6b6b;
}

.strength-meter.medium .strength-bar::before {
    width: 66.6%;
    background-color: #f1c40f;
}

.strength-meter.strong .strength-bar::before {
    width: 100%;
    background-color: #2ecc71;
}

/* --- Profile Upload Box --- */
.profile-upload-container {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.profile-upload-square {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.profile-upload-square:hover, .profile-upload-square.dragover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#profile-preview-default {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    pointer-events: none;
}

#profile-preview-default .upload-icon {
    margin-bottom: 6px;
    stroke: rgba(255, 255, 255, 0.95);
}

#profile-preview-default .upload-title {
    font-size: 12px;
    font-weight: 500;
}

#profile-preview-default .upload-subtitle {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 2px;
}

#profile-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Error Messages --- */
.error-msg {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 15px;
    text-align: left;
    font-weight: 400;
}

/* --- Terms & Conditions --- */
.auth-extra-signup {
    display: flex;
    align-items: flex-start;
    margin-top: 18px;
    margin-bottom: 10px;
    width: 100%;
}

.auth-extra-signup .remember {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    user-select: none;
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Action Buttons --- */
.signup-btn-container {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
}

.signup-btn-container .login-btn {
    flex: 1;
    min-width: 0;
    height: 56px;
    background: #ffffff;
    border-radius: 35px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: #1c6dbe;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
}

.signup-primary-btn:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.signup-primary-btn:disabled {
    background: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.signup-secondary-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

.signup-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* --- Redirect Link --- */
.bottom-redirect {
    font-size: 16px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.bottom-redirect a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
}

.bottom-redirect a:hover {
    border-bottom-style: solid;
}


/* ============================================ */
/*  📱 RESPONSIVE MEDIA QUERIES                */
/* ============================================ */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .signup {
        max-width: 680px;
        padding: 40px 35px;
    }

    .signup .signin-heading {
        font-size: 36px;
    }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .signup-page-container {
        padding: 30px 16px;
    }

    .signup {
        padding: 32px 20px;
        border-radius: 22px;
    }

    .signup .signin-heading {
        font-size: 30px;
    }

    .signup .signin-msg {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .signup-grid {
        gap: 16px;
    }

    .grid-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .row-profile-name {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 16px;
    }

    .profile-upload-container {
        width: 120px;
        height: 120px;
    }

    .profile-upload-square {
        width: 120px;
        height: 120px;
    }

    .signup-field {
        height: 52px;
        font-size: 15px;
    }

    .signup-btn-container {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .signup-btn-container .login-btn {
        width: 100%;
        height: 52px;
    }

    .bottom-redirect {
        font-size: 14px;
    }
}

/* Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    .login {
        padding: 30px 16px;
    }

    .login-btn-container {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .login-btn {
        width: 100%;
        max-width: 100%;
        height: 52px;
        font-size: 16px;
    }

    .signup {
        padding: 24px 16px;
    }

    .signup .signin-heading {
        font-size: 26px;
    }

    .signup .signin-msg {
        font-size: 14px;
        margin-bottom: 20px;
    }
}