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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 440px;
    margin: 60px auto;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

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

.auth-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #4a90d9;
}

.auth-form input:disabled {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-primary {
    background: #4a90d9;
    color: #fff;
}

.auth-form .btn-primary {
    width: 100%;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #ccc;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 13px;
}

.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.switch-link a {
    color: #4a90d9;
    text-decoration: none;
}

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

.error-msg {
    background: #fef2f2;
    color: #c53030;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.profile-card {
    margin-bottom: 20px;
}

.profile-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    font-weight: 500;
    color: #555;
    width: 120px;
    flex-shrink: 0;
}

.profile-row .value {
    color: #333;
}

.inline-form {
    display: flex;
    flex: 1;
}

.inline-form .btn {
    width: 100%;
}

/* Google sign-in button centering */
.g_id_signin {
    display: flex;
    justify-content: center;
}
