/**
 * GG Auth - Auth Form Styles
 * Migrado desde: src/app/login/page.tsx, src/app/register/page.tsx inline styles + shadcn/ui
 */

/* Auth form card (inside the page-login / page-register dark bg) */
.auth-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-gray-900, #111827);
    margin-bottom: 0.25rem;
}

.auth-form-header p {
    color: var(--gg-gray-600, #4b5563);
    font-size: 0.875rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gg-gray-700, #374151);
    margin-bottom: 0.375rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
    display: block;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--gg-gray-300, #d1d5db);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--gg-gray-900, #111827);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gg-blue-500, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder {
    color: var(--gg-gray-400, #9ca3af);
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--gg-gray-500, #6b7280);
    margin-bottom: 0.375rem;
    margin-top: -0.125rem;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gg-gray-500, #6b7280);
}

.password-toggle:hover {
    color: var(--gg-gray-700, #374151);
}

/* Form rows */
.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-row-2col > * {
    flex: 1;
}

.form-row-between {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gg-gray-700, #374151);
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--gg-gray-300, #d1d5db);
    accent-color: var(--gg-blue-600, #2563eb);
}

.text-link {
    color: var(--gg-blue-600, #2563eb);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.text-link:hover {
    color: var(--gg-blue-800, #1e40af);
    text-decoration: underline;
}

/* Button full width override */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* Auth divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gg-gray-300, #d1d5db);
}

.auth-divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gg-gray-500, #6b7280);
    letter-spacing: 0.05em;
}

/* Google icon */
.google-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Auth footer link */
.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer-link p {
    font-size: 0.875rem;
    color: var(--gg-gray-600, #4b5563);
}

.auth-footer-link a {
    color: var(--gg-blue-600, #2563eb);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* Auth terms */
.auth-terms {
    font-size: 0.75rem;
    color: var(--gg-gray-600, #4b5563);
    text-align: center;
    margin-top: 0.75rem;
}

.auth-terms a {
    color: var(--gg-blue-600, #2563eb);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Icon sizes */
.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-form-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .form-row-2col {
        flex-direction: column;
        gap: 0;
    }
}
