/* GiftManager - Auth CSS */
/* Material Design 3 inspired */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.form-field input {
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #1B5E20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.form-field input.error {
    border-color: #dc3545;
}

.field-error {
    font-size: 0.75rem;
    color: #dc3545;
    display: none;
}

.form-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #dc2626;
    text-align: center;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1B5E20;
    color: #ffffff;
}

.btn-primary:hover {
    background: #145218;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

/* Invitation page specific */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border: 4px solid #e5e7eb;
    border-top-color: #1B5E20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-title {
    color: #dc3545;
}

.error-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.welcome-text {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hint {
    color: #999;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

input[readonly] {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}
