/* css/auth.css - Telas de autenticação (login, registro, área do cliente) */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 60px;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.05), transparent 40%),
        #0A0A0A;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 28px;
    padding: 44px 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header .badge-hero {
    display: inline-flex;
    margin-bottom: 16px;
}

.auth-card-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card-header p {
    color: #999;
    font-size: 0.9rem;
}

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

.auth-field label {
    display: block;
    font-size: 0.8rem;
    color: #bbb;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: #1A1A1A;
    border: 1px solid #333;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: #D4AF37;
}

.auth-field select,
.auth-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: #1A1A1A;
    border: 1px solid #333;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.auth-field select:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

.auth-card-wide {
    max-width: 620px;
}

.auth-field-hint {
    font-size: 0.72rem;
    color: #777;
    margin-top: 5px;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.auth-msg {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.auth-msg.show {
    display: block;
}

.auth-msg.erro {
    background: rgba(220, 53, 69, 0.12);
    color: #ff8a8a;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.auth-msg.sucesso {
    background: rgba(40, 167, 69, 0.12);
    color: #7ee2a0;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: #999;
}

.auth-switch a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Área do cliente */
.client-area {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.client-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.client-header h1 span {
    color: #D4AF37;
}

.client-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.client-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px;
}

.client-card i {
    font-size: 1.6rem;
    color: #D4AF37;
    margin-bottom: 14px;
    display: block;
}

.client-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.client-card p {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.6;
}

.client-loading {
    text-align: center;
    padding: 80px 0;
    color: #999;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
}

/* Lista de orçamentos na área do cliente */
.orcamento-item {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.orcamento-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.orcamento-item p {
    color: #999;
    font-size: 0.82rem;
    max-width: 480px;
}

.orcamento-item .orcamento-data {
    color: #666;
    font-size: 0.72rem;
    margin-top: 6px;
}

.status-badge {
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-novo { background: rgba(212, 175, 55, 0.12); color: #D4AF37; }
.status-em_analise { background: rgba(0, 153, 255, 0.12); color: #66c2ff; }
.status-proposta_enviada { background: rgba(153, 102, 255, 0.12); color: #b399ff; }
.status-fechado { background: rgba(40, 167, 69, 0.12); color: #7ee2a0; }
.status-recusado { background: rgba(220, 53, 69, 0.12); color: #ff8a8a; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}
