/* Login and Registration Page Styles */
.login-container {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    font-family: 'Poppins', serif;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    color: #c5c5c8;
    padding: clamp(20px, 5vw, 30px);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-header h2 {
    margin: 0;
    font-family: 'Cinzel Decorative', 'Poppins', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    letter-spacing: 0.5px;
}

.login-subtitle {
    margin-top: 10px;
    font-family: 'Poppins', serif;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    opacity: 0.8;
    color: #DB9E30;
}

.login-body {
    padding: clamp(20px, 5vw, 30px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a233b;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    font-family: 'Poppins', serif;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a233b;
    opacity: 0.7;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-input {
    width: 100%;
    padding: clamp(10px, 3vw, 12px) 15px clamp(10px, 3vw, 12px) 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-family: 'Poppins', serif;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff;
    background-color: #ffffff;
}

.form-input.is-invalid {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    margin-top: 5px;
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox-input {
    margin-right: 8px;
    width: clamp(16px, 4vw, 18px);
    height: clamp(16px, 4vw, 18px);
    cursor: pointer;
    margin-bottom: 8px;
    accent-color: #1a233b;
}

.custom-checkbox-label {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    cursor: pointer;
    user-select: none;
    color: #4a5568;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1a233b;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    opacity: 1;
}

.form-actions {
    margin-top: 25px;
}

.btn-login {
    width: 100%;
    padding: clamp(12px, 3.5vw, 14px);
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    color: #c5c5c8;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    box-shadow: 0 5px 15px rgba(26, 35, 59, 0.3);
    transform: translateY(-2px);
}

/* Focus-visible for accessibility */
.btn-login:focus-visible {
    outline: 2px solid #1a233b;
    outline-offset: 2px;
}

.forgot-password {
    text-align: center;
    margin-top: clamp(15px, 4vw, 20px);
    font-family: 'Poppins', serif;
}

.forgot-link {
    color: #1a233b;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px;
}

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

.signup-link {
    text-align: center;
    margin-top: clamp(20px, 4vw, 25px);
    padding-top: clamp(15px, 4vw, 20px);
    border-top: 1px solid #e2e8f0;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-family: 'Poppins', serif;
}

.signup-link span {
    color: #4a5568;
}

.signup-link a {
    color: #1a233b;
    font-weight: 600;
    margin-left: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Media Queries for Better Responsiveness */
/* Extra small devices (phones, 320px and up) */
@media only screen and (max-width: 320px) {
    .login-card {
        border-radius: 10px;
    }
    
    .login-header {
        padding: 15px;
    }
    
    .login-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 321px) and (max-width: 576px) {
    .login-card {
        max-width: 90%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 577px) and (max-width: 768px) {
    .login-card {
        max-width: 85%;
    }
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    .login-card {
        max-width: 70%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
    .login-card {
        max-width: 60%;
    }
}

/* XXL devices */
@media only screen and (min-width: 1201px) {
    .login-card {
        max-width: 450px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .btn-login:hover {
        box-shadow: none;
        transform: none;
    }
    
    .btn-login:active {
        background: #2d3854;
    }
    
    .form-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Landscape orientation optimization for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .login-header {
        padding: 10px;
    }
    
    .login-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
}

/* Accessibility improvements */
.form-input:focus, .btn-login:focus, .toggle-password:focus {
    outline: 2px solid #1a233b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .login-container {
        background: none;
        padding: 0;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-login {
        background: #1a233b !important;
        color: white !important;
    }
}

/* Email verification specific styles to add to your existing CSS */

/* Alert styles */
.verification-alert {
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid #48bb78;
    color: #276749;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-icon {
    margin-right: 10px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #48bb78;
}

/* Verification text */
.verification-text {
    color: #1a233b;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Poppins', serif;
}

/* Resend form */
.resend-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 25px;
    color: #4a5568;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: 'Poppins', serif;
}

.resend-inline-form {
    display: inline;
}

.resend-btn {
    background: none;
    border: none;
    color: #1a233b;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: 'Poppins', serif;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.resend-btn:hover {
    color: #2d3854;
}

.btn-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Responsive adjustments for the verify page */
@media only screen and (max-width: 576px) {
    .resend-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resend-inline-form {
        margin-top: 10px;
    }
}