/* Authentication Pages Styles */
.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 15px;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 70vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: #1a252f;
    color: white;
    padding: 16px;
    text-align: center;
    flex-shrink: 0;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
}

.auth-brand img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-brand span {
    font-size: 15px;
    font-weight: 600;
}

.auth-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.toggle-btn {
    padding: 5px 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.toggle-btn:hover {
    color: white;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.toggle-btn.active {
    background: white;
    color: #1a252f;
}

.auth-form {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    gap: 0;
}

.form-group {
    margin-bottom: 14px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 12px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    display: block;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-block {
    width: 100%;
    display: block;
    margin-top: 6px;
}

.alert {
    padding: 8px 12px;
    margin: 0 16px;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 3px solid #c33;
}

.alert-success {
    background: #efe;
    color: #155724;
    border-left: 3px solid #28a745;
}

.auth-footer {
    padding: 10px 16px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.auth-links {
    padding: 0 16px;
    flex-shrink: 0;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-footer p {
    margin: 0;
    color: #7f8c8d;
    font-size: 12px;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .auth-card {
        max-height: none;
        height: auto;
    }
    
    .auth-header {
        padding: 14px;
    }
    
    .auth-brand img {
        height: 24px;
    }
    
    .auth-brand span {
        font-size: 14px;
    }
    
    .auth-form {
        padding: 14px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
}
