/* web/static/css/auth.css - Styles for the login / register page */

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px 28px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.auth-header h1 {
    font-size: 22px;
    color: #1a237e;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 13px;
    color: #666;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f0f4f8;
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.auth-tab:hover {
    background: #e8ecf1;
}

.auth-tab.active {
    background: #1a237e;
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #1976d2;
    outline: none;
}

.auth-submit {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.2s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.25);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.auth-message.show {
    display: block;
}

.auth-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.auth-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

.auth-footer a {
    color: #1976d2;
    text-decoration: none;
}

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

@media (max-width: 480px) {
    .auth-container {
        margin: 20px 16px;
        padding: 24px 20px;
    }
}