/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #08202A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    position: relative;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    position: fixed; /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    background-color: #08202A; /* Same as body background */
}

.nav-logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

.back-home-button {
    background-color: #F28B50;
    color: #123340;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-home-button:hover {
    background-color: #ff9b5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 139, 80, 0.3);
}

/* Login Container */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding-top: 80px; /* Account for fixed header */
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Stacked Cards Effect - Scaled to 88% of original (0.7 * 1.4 * 0.9) */
.login-cards {
    position: relative;
    width: 388px; /* 431px * 0.9 */
    height: 466px; /* 518px * 0.9 */
    /* Removed translateY to allow proper vertical centering */
}

/* Background Cards - Scaled to 88% of original */
.login-card-bg-1 {
    position: absolute;
    width: 478px; /* 531px * 0.9 */
    height: 573px; /* 637px * 0.9 */
    background: rgba(18, 51, 64, 0.2);
    border-radius: 35px; /* 39px * 0.9 */
    top: -54px; /* -60px * 0.9 */
    left: -45px; /* -50px * 0.9 */
}

.login-card-bg-2 {
    position: absolute;
    width: 434px; /* 482px * 0.9 */
    height: 520px; /* 578px * 0.9 */
    background: rgba(18, 51, 64, 0.3);
    border-radius: 35px; /* 39px * 0.9 */
    top: -28px; /* -31px * 0.9 */
    left: -23px; /* -25px * 0.9 */
    transform: translateY(-12px); /* Move up 12px */
}

/* Main Login Card - Scaled to 88% of original */
.login-card {
    position: relative;
    width: 388px; /* 431px * 0.9 */
    height: 466px; /* 518px * 0.9 */
    background: rgba(18, 51, 64, 0.6);
    border-radius: 35px; /* 39px * 0.9 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px; /* 39px * 0.9 */
    transform: translateY(-12px); /* Move up 12px */
}

/* Form Styles - Scaled to 88% of original */
.login-form {
    width: 100%;
    max-width: 314px; /* 349px * 0.9 */
}

.login-title {
    color: white;
    font-size: 28px; /* 31px * 0.9 */
    font-family: 'Adieu', sans-serif !important;
    font-weight: 400;
    text-align: center;
    margin-bottom: 35px; /* 39px * 0.9 */
    letter-spacing: -0.28px; /* -0.31px * 0.9 */
}

.form-group {
    margin-bottom: 22px; /* 24px * 0.9 */
}

.form-label {
    color: white;
    font-size: 22px; /* 24px * 0.9 */
    font-family: 'Adieu', sans-serif !important;
    font-weight: 400;
    display: block;
    margin-bottom: 9px; /* 10px * 0.9 */
    padding-left: 9px; /* 10px * 0.9 */
    letter-spacing: -0.22px; /* -0.24px * 0.9 */
}

.form-input {
    width: 100%;
    background: transparent;
    border: 2px solid #F28B50;
    border-radius: 9px; /* 10px * 0.9 */
    padding: 13px 18px; /* 14px * 0.9, 20px * 0.9 */
    color: white;
    font-size: 14px; /* 15px * 0.9 */
    font-family: 'Formular', sans-serif;
    font-weight: 400;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    letter-spacing: -0.14px; /* -0.15px * 0.9 */
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #ff9b5a;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.forgot-password {
    display: block;
    color: white;
    font-size: 10px; /* 11px * 0.9 */
    font-family: 'Formular', sans-serif;
    font-weight: 400;
    text-decoration: none;
    text-align: left;
    margin-top: 18px; /* 20px * 0.9 */
    padding-left: 9px; /* 10px * 0.9 */
    letter-spacing: -0.10px; /* -0.11px * 0.9 */
}

.forgot-password span {
    color: #F28B50;
}

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

.login-button {
    width: 100%;
    background: #F28B50;
    border: none;
    border-radius: 35px; /* 39px * 0.9 */
    padding: 9px; /* 10px * 0.9 */
    color: white;
    font-size: 22px; /* 24px * 0.9 */
    font-family: 'Adieu', sans-serif !important;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px; /* 35px * 0.7 - reduced by 30% */
    letter-spacing: -0.22px; /* -0.24px * 0.9 */
}

.login-button:hover {
    background: #ff9b5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 139, 80, 0.3);
}

/* Ensure Adieu font is applied */
h1.login-title {
    font-family: 'Adieu', sans-serif !important;
}

label.form-label {
    font-family: 'Adieu', sans-serif !important;
}

/* Wave Container positioning for Login page */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 35vh; /* Match homepage wave height */
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1512px) {
    .wave-container {
        height: 25vh; /* Match homepage wave height */
    }
}

@media (max-width: 1440px) {
    .login-cards {
        transform: scale(0.95);
    }
}

@media (max-width: 1200px) {
    .login-cards {
        transform: scale(0.9);
    }
    
    .login-header {
        padding: 15px 30px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .back-home-button {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    /* Prevent iOS Safari issues */
    html, body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    /* Hide wave animation on mobile */
    .wave-container {
        display: none;
    }
    
    .login-container {
        padding: 0 20px; /* Add horizontal padding to container */
        position: fixed; /* Change to fixed on mobile */
        height: 100vh;
        overflow-y: auto; /* Allow vertical scroll if needed */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .login-cards {
        transform: scale(0.85);
        width: 100%;
        max-width: 388px;
        margin: 0 auto; /* Center the cards container */
    }
    
    /* Hide background cards on mobile */
    .login-card-bg-1,
    .login-card-bg-2 {
        display: none;
    }
    
    .login-card {
        width: 100%;
        max-width: 388px;
        height: auto;
        padding: 65px 45px; /* Increased top/bottom padding, kept horizontal */
        margin: 0; /* Remove horizontal margin */
        transform: translateY(-10px); /* Adjusted for mobile */
    }
    
    .login-title {
        font-size: 51px; /* Increased by 30% from 39px */
        margin-bottom: 46px; /* Increased by 30% from 35px */
    }
    
    .form-label {
        font-size: 27px; /* Increased by 30% from 21px */
    }
    
    .form-input {
        font-size: 18px; /* Increased by 30% from 14px */
        padding: 17px 22px; /* Increased by 30% from 13px 17px */
    }
    
    
    .login-button {
        font-size: 27px; /* Increased by 30% from 21px */
        margin-top: 33px; /* Increased by 30% from 25px */
        padding: 14px; /* Increased by 30% from 11px */
    }
    
    .login-header {
        padding: 10px 20px;
    }
    
    .logo-img {
        height: 20px;
    }
    
    .back-home-button {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0 15px; /* Reduce padding on smaller screens */
    }
    
    .login-card {
        padding: 40px 20px; /* Increased top/bottom padding */
    }
    
    .login-title {
        font-size: 33px; /* Increased by 30% from 25px */
        margin-bottom: 36px; /* Increased by 30% from 28px */
    }
    
    .form-group {
        margin-bottom: 26px; /* Increased by 30% from 20px */
    }
    
    .form-label {
        font-size: 26px; /* Increased by 30% from 20px */
        margin-bottom: 10px; /* Increased by 30% from 8px */
    }
    
    .form-input {
        font-size: 17px; /* Increased by 30% from 13px */
        padding: 14px 18px; /* Increased by 30% from 11px 14px */
    }
    
    .forgot-password {
        font-size: 13px; /* Increased by 30% from 10px */
        margin-top: 18px; /* Increased by 30% from 14px */
        padding-left: 17px; /* Increased by 30% from 13px */
    }
    
    .login-button {
        font-size: 26px; /* Increased by 30% from 20px */
        margin-top: 23px; /* Increased by 30% from 18px */
        padding: 13px; /* Increased by 30% from 10px */
    }
}