/**
 * auth.css - Authentication Pages Styles
 * BO Inteligente - SaaS Phase 1
 */

/* Auth Page Container */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 20px;
}

/* Auth Card */
.auth-card {
    background: #ffffff;
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 32px;
}

/* Auth Header */
.auth-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-icon {
    max-height: clamp(44px, calc(13vw - 4px), 70px);
}

.auth-title {
    font-size: clamp(1.5rem, calc(10vw - 4px), 2.75rem);
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0 10px;
}

.auth-title.roboto {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.auth-title-bo {
    font-weight: 600;
}

.auth-title-inteligente {
    font-weight: 400;
}

.auth-forgot {
    text-align: right;
    margin: -8px 0 8px;
}

.auth-forgot-link {
    font-size: 13px;
}


.auth-subtitle {
    font-size: 14px;
    text-align: center;
    color: #6b7280;
    margin: 0 0 32px 0;
}

/* Auth Form */
.auth-form {
    margin-bottom: 24px;
}

.auth-field {
    margin-bottom: 16px;
}

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

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input--has-toggle {
    padding-right: 44px;
}

.auth-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.auth-toggle-password:hover {
    color: #6b7280;
}

.auth-toggle-password--visible {
    color: #3b82f6;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.auth-button:hover:not(:disabled) {
    background: #2563eb;
}

.auth-button:active:not(:disabled) {
    transform: scale(0.98);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Error */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer p {
    margin: 0;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 12px;
    }

    .auth-header {
        margin-bottom: 14px;
    }

    .auth-field {
        margin-bottom: 14px;
    }

    .auth-button {
        padding: 12px;
    }
}

/* Small screens (landscape phones) */
@media (max-width: 360px) {
    .auth-card {
        padding: 20px;
    }

    .auth-input {
        padding: 10px 14px;
        font-size: 15px;
    }
}