/* Auth Page Styles */
.auth-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Ubuntu', sans-serif;
}

/* Left Column - Branding Section */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1B2028 0%, #06344D 50%, #0B63BB 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/login_banner.jpg')  no-repeat;
    background-size: cover;
    background-position: center;
   
}

.auth-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 500px;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.welcome-prefix {
    font-size: 38px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.welcome-brand {
    font-size: 46px;
    font-weight: 700;
    color: #48c79c;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.15;
    text-shadow: 0 0 16px rgba(72, 199, 156, 0.35), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.welcome-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 165px;
    height: 3px;
    background: #48c79c;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(72, 199, 156, 0.5);
}

.welcome-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #ffffff;
    max-width: 360px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Business Person Graphic */
.business-graphic {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-silhouette {
    position: relative; /* Important */
    width: 100%;
    height: 100%; /* Or set a specific height like 400px */
 }
 
 .person-silhouette img {
    position: absolute;
    bottom: 0;  /* Align to bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
 }

.auth-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    max-height: 100vh;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #06344D;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #06344D;
    border-radius: 2px 2px 0 0;
}

.tab-btn:hover {
    color: #06344D;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form-content {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.mobile-input-row {
    display: flex;
    width: 100%;
}

.mobile-country-code {
    flex: 0 0 155px;
    max-width: 155px;
}

.mobile-number {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-error {
    display: block;
    width: 100%;
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #06344D;
    box-shadow: 0 0 0 3px rgba(6, 52, 77, 0.1);
}

.form-options {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #06344D;
    text-decoration: none;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #06344D 0%, #0B63BB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 52, 77, 0.3);
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #999;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.google-btn {
  background: conic-gradient(
    rgb(66,133,244),
    rgb(219,68,55),
    rgb(244,180,0),
    rgb(15,157,88),
    rgb(66,133,244)
  );
  color: white;            /* text color */
    border: 2px solid #e0e0e0;
}

.google-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.facebook-btn {
    background: #1877F2;
    color: white;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.linkedin-btn {
    background: #0077B5;
    color: white;
}

.linkedin-btn:hover {
    background: #006BA1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

/* MacBook & Laptop Viewports with constrained height */
@media (min-width: 992px) and (max-height: 850px) {
    .auth-right {
        padding: 24px 30px;
    }
    .auth-form-container {
        max-width: 380px;
    }
    .auth-tabs {
        margin-bottom: 20px;
    }
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    .auth-btn {
        padding: 11px;
        font-size: 14px;
        margin-bottom: 16px;
    }
    .auth-left-content {
        padding: 24px;
        max-width: 440px;
    }
    .welcome-title {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .welcome-prefix {
        font-size: 28px;
    }
    .welcome-brand {
        font-size: 36px;
        padding-bottom: 8px;
    }
    .welcome-description {
        font-size: 13px;
        max-width: 320px;
    }
    .business-graphic {
        height: 140px;
    }
}

/* Tablet & Mobile: Stack Layout */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        flex: none;
        min-height: 0;
        height: 260px;
        padding: 20px;
    }

    .auth-left-content {
        padding: 0;
    }

    .auth-logo {
        margin-bottom: 20px;
    }

    .auth-logo img {
        width: 140px !important;
    }

    .welcome-section {
        margin-bottom: 0;
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 12px;
        gap: 4px;
    }

    .welcome-prefix {
        font-size: 24px;
    }

    .welcome-brand {
        font-size: 30px;
        padding-bottom: 8px;
    }

    .welcome-brand::after {
        min-width: 110px;
        height: 2.5px;
    }

    .welcome-description {
        font-size: 13px;
        font-weight: 400;
        line-height: 1.45;
        max-width: 300px;
    }

    /* Empty decorative graphic — only adds inconsistent blank space on mobile */
    .business-graphic {
        display: none;
    }

    .auth-right {
        padding: 24px 20px 20px;
        flex: 1;
        align-items: flex-start;
    }

    .auth-form-container {
        max-width: 100%;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-left {
        min-height: 200px;
        height: auto;
        padding: 20px 16px;
    }

    .auth-left-content {
        padding: 0;
    }

    .auth-logo {
        margin-bottom: 12px;
    }

    .auth-logo img {
        width: 120px !important;
    }

    .logo-text {
        font-size: 24px;
    }

    .welcome-title {
        font-size: 20px;
        margin-bottom: 8px;
        gap: 2px;
    }

    .welcome-prefix {
        font-size: 20px;
    }

    .welcome-brand {
        font-size: 24px;
        padding-bottom: 6px;
    }

    .welcome-brand::after {
        min-width: 90px;
        height: 2px;
    }

    .welcome-description {
        display: block;
        font-size: 12px;
        line-height: 1.4;
        font-weight: 400;
        max-width: 270px;
    }

    .auth-right {
        padding: 15px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Ensure main wrapper can position absolute elements */
.auth-container {
    position: relative;
}

/* Styled Back to Home Button */
.btn-back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.btn-back-home:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
}

/* Optional adjustment for small screens */
@media (max-width: 768px) {
    .btn-back-home {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== Readability / eye-catching text enhancements ===== */

/* Dark brand-tinted overlay so white text stands out on the bright photo */
.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(6, 30, 52, 0.70) 0%,
        rgba(6, 52, 77, 0.45) 55%,
        rgba(0, 0, 0, 0.25) 100%);
}

/* Frosted glass card behind the welcome text */
.welcome-section {
    background: rgba(6, 30, 52, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.welcome-prefix {
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.welcome-brand {
    font-weight: 800;
    color: #5ff0bd;
    text-shadow: 0 0 22px rgba(95, 240, 189, 0.45), 0 3px 10px rgba(0, 0, 0, 0.6);
}

.welcome-brand::after {
    background: linear-gradient(90deg, #5ff0bd, #3fa9ff);
    height: 4px;
}

.welcome-description {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    color: #f2f7fb;
    max-width: 380px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Right side: stronger, crisper form text */
.tab-btn {
    color: #4a5563;
    font-weight: 600;
}

.tab-btn.active {
    color: #0B63BB;
    font-weight: 700;
}

.tab-btn.active::after {
    background: linear-gradient(90deg, #06344D, #0B63BB);
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #06344D 0%, #0B63BB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #06344D;
}

.form-control {
    color: #1f2937;
    font-weight: 500;
    border-color: #cfd8e3;
}

.form-control::placeholder {
    color: #6b7684;
    opacity: 1;
    font-weight: 400;
}

.forgot-password {
    color: #0B63BB;
    font-weight: 600;
}

.forgot-password:hover {
    color: #06344D;
    text-decoration: underline;
}

.auth-btn {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.divider {
    color: #5b6573;
    font-weight: 600;
}

.form-check-label {
    color: #374151;
}

.btn-back-home {
    color: #06344D;
    background-color: #ffffff;
}

@media (min-width: 992px) and (max-height: 850px) {
    .welcome-section { padding: 20px 22px; }
    .welcome-description { font-size: 15px; }
    .form-title { font-size: 22px; }
    .auth-btn { font-size: 15px; }
}

@media (max-width: 991.98px) {
    .welcome-section { padding: 16px 18px; border-radius: 16px; }
    .welcome-description { font-size: 14px; }
    .form-title { font-size: 22px; }
    .auth-btn { font-size: 15px; }
}

@media (max-width: 480px) {
    .welcome-section { padding: 12px 14px; }
    .welcome-description { font-size: 13px; }
    .form-title { font-size: 20px; }
}

/* ===== Welcome block placement: keep logo + text in the sky area so the
   two people in the banner photo stay fully visible ===== */
.auth-left {
    align-items: flex-start;
}

/* The banner is background-size: cover on a 50vw-wide panel, so the top of
   the man's head lands at roughly (50vh - 3vw). Start the block high enough
   that its bottom stays ~30px above that line, but never under the
   Back to Home button. */
.auth-left-content {
    padding-top: max(72px, calc(50vh - 3vw - 300px));
}

.auth-logo {
    margin-bottom: 22px;
}

.welcome-title-accent {
    color: #009A66;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    font-weight: 800;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.55), 0 2px 10px rgba(0, 0, 0, 0.55);
}

.welcome-title-accent::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #009A66;
}

@media (min-width: 992px) and (max-height: 850px) {
    .auth-left-content { padding-top: max(68px, calc(50vh - 3vw - 270px)); }
    .auth-logo { margin-bottom: 16px; }
    .auth-logo img { width: 170px !important; }
}

@media (max-width: 991.98px) {
    .auth-left { align-items: flex-start; }
    .auth-left-content { padding-top: 36px; }
    .auth-logo { margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .auth-left-content { padding-top: 32px; }
    .auth-logo { margin-bottom: 8px; }
}

/* No frosted card behind the welcome text - text sits directly on the photo */
.welcome-section,
.welcome-section[class] {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
