/**
 * Auth pages (Login y Registro)
 */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #f5f5f5;
}

.auth-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-box-wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.auth-header p {
    font-size: 0.9rem;
    color: #666666;
    letter-spacing: 0.5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.link-secondary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.link-secondary:hover {
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    position: relative;
    padding-left: 28px;
    user-select: none;
}

/* Ocultar checkbox nativo */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Checkbox personalizado */
.checkbox-label::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: transparent;
    transition: all var(--transition-normal);
}

/* Hover */
.checkbox-label:hover::before {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Checked */
.checkbox-label input[type="checkbox"]:checked ~ * {
    /* Esto es solo para activar el selector siguiente */
}

.checkbox-label input[type="checkbox"]:checked::before {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
}

.checkbox-label:has(input[type="checkbox"]:checked)::before {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
}

/* Checkmark */
.checkbox-label:has(input[type="checkbox"]:checked)::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.link-primary {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.link-primary:hover {
    opacity: 0.7;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.btn-social:hover {
    background-color: var(--hover-bg);
    border-color: var(--text-primary);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}
