/* Auth page styles — standalone pages (login, register, forgot-password, reset-password) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

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

.auth-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6c757d;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

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

.auth-form .btn-primary:disabled {
    background: #7fb8e0;
    cursor: not-allowed;
}

.auth-error {
    background: #fef2f2;
    color: #dc3545;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-success {
    background: #f0fdf4;
    color: #198754;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #6c757d;
}

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

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

.password-requirements {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* OAuth divider ("OR" with horizontal lines) */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #6c757d;
    font-size: 13px;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.oauth-divider::before { margin-right: 12px; }
.oauth-divider::after { margin-left: 12px; }

/* Google sign-in button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Profile page sections */
.profile-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.oauth-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.oauth-account-row .provider-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}
.oauth-account-row .status-connected {
    font-size: 12px;
    color: #198754;
}
.btn-unlink {
    padding: 6px 12px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background: white;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-unlink:hover {
    background: #fef2f2;
}
.btn-link-oauth {
    padding: 6px 12px;
    border: 1px solid #3498db;
    border-radius: 4px;
    background: white;
    color: #3498db;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-link-oauth:hover {
    background: #f0f7ff;
}
.password-status {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}
.profile-back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
}
.profile-back-link:hover {
    text-decoration: underline;
}
