/* =============================================================================
   Cozinha Auth – Plugin styles
   ============================================================================= */

.cozinha-auth-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.cozinha-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.cozinha-auth-container {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
}

.cozinha-auth-title {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
}

/* Alerts */
.cozinha-auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cozinha-auth-alert--error {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    color: #c0392b;
}

.cozinha-auth-alert--success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* Google button */
.cozinha-auth-btn--google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.cozinha-auth-btn--google:hover {
    background: #f7f8f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #1a1a1a;
}

/* Divider */
.cozinha-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.25rem 0;
    color: #888;
    font-size: 0.85rem;
}

.cozinha-auth-divider::before,
.cozinha-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Form fields */
.cozinha-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cozinha-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cozinha-auth-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
}

.cozinha-auth-field input[type="email"],
.cozinha-auth-field input[type="password"],
.cozinha-auth-field input[type="text"] {
    padding: 0.6rem 0.85rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.cozinha-auth-field input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.cozinha-auth-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.15rem;
}

/* Row utility */
.cozinha-auth-row {
    display: flex;
    align-items: center;
}

.cozinha-auth-row--between {
    justify-content: space-between;
}

.cozinha-auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #555;
    cursor: pointer;
}

/* Primary button */
.cozinha-auth-btn--primary {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #c0392b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    text-align: center;
    box-sizing: border-box;
    margin-top: 0.25rem;
}

.cozinha-auth-btn--primary:hover {
    background: #a93226;
}

.cozinha-auth-btn--primary:active {
    transform: scale(0.99);
}

/* Switch link (login ↔ register) */
.cozinha-auth-switch {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
}

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

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

/* Logout link */
.cozinha-auth-logout-link {
    color: #c0392b;
    font-size: 0.9rem;
    text-decoration: none;
}

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