/* Advanced login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
    box-sizing: border-box;
    gap: 40px;
    flex-wrap: wrap;
}

.login-box {
    background: linear-gradient(135deg, var(--container-bg-color) 0%, var(--section-alt-bg) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--soft-grey);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: rotate(45deg);
    z-index: 0;
}

.login-header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.login-hero-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-header h2 {
    color: var(--text-dark);
    font-size: 2em;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95em;
}

#login-form {
    position: relative;
    z-index: 1;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9em;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--soft-grey);
    border-radius: 10px;
    background-color: var(--container-bg-color);
    color: var(--text-dark);
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.2em;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
}

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

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--soft-grey);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #C2A22F;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #C2A22F 100%);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-error {
    color: var(--error-red);
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    min-height: 20px;
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-grey);
}

.login-footer p {
    color: var(--text-dark);
    font-size: 0.9em;
    margin: 0;
}

.signup-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
}

.signup-link:hover {
    color: #C2A22F;
}

.login-features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-grey);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    color: var(--accent-gold);
}

.feature-item span:last-child {
    font-size: 0.8em;
    color: var(--text-dark);
    opacity: 0.8;
}

.login-info {
    max-width: 400px;
    text-align: center;
}

.login-info h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0f1e2e 100%);
    color: var(--text-light);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.info-card p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.9;
}

body.dark-theme .login-box {
    background: linear-gradient(135deg, #1a2e44 0%, #0f1e2e 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

body.dark-theme .input-group input {
    background-color: #1a2e44;
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
}

body.dark-theme .info-card {
    background: linear-gradient(135deg, #0a1621 0%, #0a0a0a 100%);
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .login-box, .login-info {
        max-width: 350px;
    }
    
    .login-features {
        flex-direction: column;
        gap: 10px;
    }
}