/* Login Page Styles */

.login-container {
    max-width: 420px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form label {
    font-weight: 600;
}

.login-button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-button:hover {
    background: #0056b3;
}

@keyframes loginGoogleRise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginGoogleSpin {
    to { transform: rotate(360deg); }
}

.google-login-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #1f3a5a;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(22, 49, 84, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: loginGoogleRise 0.35s ease both;
}

.google-login-button:hover {
    background: #f5f8fc;
    border-color: #b9c7da;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22, 49, 84, 0.12);
}

.google-login-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.google-login-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.google-login-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.google-login-label {
    white-space: nowrap;
}

.google-login-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d4dce8;
    border-top-color: #1a73e8;
    animation: loginGoogleSpin 0.8s linear infinite;
}

.google-login-button.is-loading {
    pointer-events: none;
    cursor: progress;
    opacity: 0.86;
}

.google-login-button.is-loading .google-login-spinner {
    display: inline-flex;
}

.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0;
    color: #6a7b91;
    font-size: 13px;
}

.oauth-divider::before,
.oauth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #d8e0ec;
}

.oauth-divider::before {
    margin-right: 10px;
}

.oauth-divider::after {
    margin-left: 10px;
}

.oauth-helper {
    margin: 0 0 14px;
    color: #6a7b91;
    font-size: 13px;
    text-align: center;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

.success-message {
    color: #28a745;
    margin-top: 10px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}
