/* CraftConnect Admin — tela de autenticação */

.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #312e81 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.auth-card-header h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.auth-card-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.auth-card-body {
    padding: 1.75rem 2rem 2rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.auth-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    color: #94a3b8;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.auth-input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    outline: none;
    background: transparent;
}

.auth-phone-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.auth-country-select {
    flex: 0 0 auto;
    min-width: 6.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    align-self: stretch;
}

.auth-country-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-phone-input {
    flex: 1;
    min-width: 0;
}

.auth-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.auth-hint-error {
    color: #dc2626;
    font-weight: 500;
}

.auth-input-group input.is-invalid {
    color: #dc2626;
}

.auth-toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    color: #94a3b8;
    background: #f8fafc;
    border: none;
    border-left: 1px solid #e2e8f0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-toggle-password:hover {
    color: #4f46e5;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.875rem;
}

.auth-options a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.auth-options a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.55);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
    border-left: 3px solid #ef4444;
}

.auth-footer {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 480px) {
    .auth-card-header,
    .auth-card-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
