/* Vedic Wellness Modern Login Screen Styles */

.login-page-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #FAF7F2;
    font-family: 'Lexend Deca', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Left Hero Section with Ayurvedic Wellness Visual */
.login-hero-side {
    flex: 1.1;
    position: relative;
    background: linear-gradient(135deg, #084848 0%, #0A5E5E 50%, #063636 100%);
    background-image: url('../images/vedic-wellness-hero.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 54, 54, 0.35) 0%, rgba(13, 110, 110, 0.12) 50%, rgba(6, 54, 54, 0.45) 100%);
    pointer-events: none;
}

/* Right Form Section */
.login-form-side {
    flex: 0.9;
    position: relative;
    background-color: #FAF7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    overflow: hidden;
}

/* Bottom Right Geometric Red Accents */
.red-accent-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.red-accent-corner svg {
    display: block;
    width: 260px;
    height: 260px;
}

/* Main Login Card */
.login-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #E8E4DE;
    box-shadow: 0 20px 45px rgba(13, 110, 110, 0.09), 0 5px 15px rgba(0, 0, 0, 0.04);
    padding: 38px 36px 34px 36px;
    z-index: 10;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Watermark Botanical Emblem inside Card Top-Right */
.card-watermark-gear {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 72px;
    height: 72px;
    color: #0D6E6E;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.login-card-content {
    position: relative;
    z-index: 2;
}

/* Brand Header */
.brand-header {
    text-align: center;
    margin-bottom: 8px;
}

.brand-logo-img {
    max-height: 85px;
    max-width: 220px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.brand-title-text {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

/* Pill Badge: Admin Panel Login */
.admin-badge-container {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 8px;
}

.admin-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D6E6E 0%, #0A5E5E 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.6px;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(200, 150, 62, 0.4);
    box-shadow: 0 4px 14px rgba(13, 110, 110, 0.3);
    user-select: none;
}

.admin-pill-badge i {
    font-size: 16px;
    margin-right: 8px;
    color: #D4A84B;
}

/* Welcome Subtitle */
.welcome-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 400;
    margin-top: 6px;
    margin-bottom: 24px;
}

/* Form Styles */
.form-field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 17px;
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-input {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
    border-color: #0D6E6E;
    box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
}

.custom-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.custom-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Password Eye Toggle */
.toggle-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.toggle-eye-btn:hover {
    color: #0D6E6E;
}

/* Form Options: Remember Me & Forgot Password */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 22px;
}

.remember-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

.remember-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0D6E6E;
    cursor: pointer;
    margin-right: 8px;
    border-radius: 4px;
}

.remember-checkbox-label span {
    font-size: 13.5px;
    color: #475569;
}

.forgot-password-link {
    color: #0D6E6E;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.forgot-password-link:hover {
    color: #C8963E;
    text-decoration: underline;
}

/* Submit Login Button */
.btn-red-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0D6E6E 0%, #0A5E5E 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(13, 110, 110, 0.32);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-red-login i {
    font-size: 18px;
    margin-right: 8px;
}

.btn-red-login:hover {
    background: linear-gradient(135deg, #0A5E5E 0%, #084848 100%);
    box-shadow: 0 8px 24px rgba(13, 110, 110, 0.42);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-red-login:active {
    transform: translateY(0);
}

/* Alert Styling */
.login-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.error-feedback-text {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

/* Back to Login Link */
.back-link-wrapper {
    text-align: center;
    margin-top: 20px;
}

.back-to-login-link {
    display: inline-flex;
    align-items: center;
    color: #0D6E6E;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.15s ease;
}

.back-to-login-link i {
    font-size: 16px;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.back-to-login-link:hover {
    color: #C8963E;
    text-decoration: underline;
}

.back-to-login-link:hover i {
    transform: translateX(-3px);
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .login-hero-side {
        display: none;
    }

    .login-form-side {
        flex: 1;
        min-height: 100vh;
        background: linear-gradient(rgba(6, 54, 54, 0.78), rgba(8, 72, 72, 0.78)),
                    url('../images/vedic-wellness-hero.jpg') center center / cover no-repeat;
    }

    .login-card {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 22px 24px 22px;
        border-radius: 18px;
    }

    .admin-pill-badge {
        font-size: 14px;
        padding: 7px 18px;
    }

    .form-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
