/* ==========================================================================
   Tudatos Subscriptions — Frontend CSS
   Login form, gate messages, account dashboard
   ========================================================================== */

/* --------------------------------------------------------------------------
   Login form
   -------------------------------------------------------------------------- */
.tudatos-login {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.tudatos-login__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.tudatos-login__field {
    margin-bottom: 16px;
}

.tudatos-login__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.tudatos-login__field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.tudatos-login__field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.tudatos-login__submit {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.tudatos-login__submit:hover {
    background: #4338ca;
}

.tudatos-login__forgot,
.tudatos-login__register {
    text-align: center;
    font-size: 13px;
    color: #787c82;
    margin-top: 12px;
}

.tudatos-login__forgot a,
.tudatos-login__register a {
    color: #4f46e5;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Gate messages (for non-subscribers)
   -------------------------------------------------------------------------- */
.tudatos-gate {
    padding: 24px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: center;
    margin: 24px 0;
}

.tudatos-gate p {
    font-size: 16px;
    color: #50575e;
    margin: 0 0 16px;
}

.tudatos-gate-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #4f46e5;
    color: #fff !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.tudatos-gate-btn:hover {
    background: #4338ca;
}

/* --------------------------------------------------------------------------
   Member content wrapper
   -------------------------------------------------------------------------- */
.tudatos-member-content {
    /* No special styles needed — just a semantic wrapper */
}

/* --------------------------------------------------------------------------
   Logout link
   -------------------------------------------------------------------------- */
.tudatos-logout-link {
    font-size: 14px;
    color: #787c82;
    text-decoration: none;
}

.tudatos-logout-link:hover {
    color: #d63638;
}

/* --------------------------------------------------------------------------
   Account dashboard ([tudatos_account] shortcode)
   -------------------------------------------------------------------------- */
.tudatos-account {
    max-width: 680px;
}

.tudatos-account-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.tudatos-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.tudatos-account-product {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.tudatos-account-details {
    display: grid;
}

.tudatos-account-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.tudatos-account-row:last-child {
    border-bottom: none;
}

.tudatos-account-row--warning {
    background: #fff8e1;
    margin: 0 -24px;
    padding: 10px 24px;
    border-radius: 4px;
}

.tudatos-account-label {
    font-size: 14px;
    color: #787c82;
    min-width: 180px;
}

.tudatos-account-value {
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
    text-align: right;
}

.tudatos-account-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
}

/* --------------------------------------------------------------------------
   Status badges (shared across account + admin)
   -------------------------------------------------------------------------- */
.tudatos-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.tudatos-badge--active    { background: #d1fae5; color: #065f46; }
.tudatos-badge--on-hold   { background: #fef3c7; color: #92400e; }
.tudatos-badge--cancelled { background: #fee2e2; color: #991b1b; }
.tudatos-badge--expired   { background: #f3f4f6; color: #6b7280; }
.tudatos-badge--pending   { background: #ede9fe; color: #5b21b6; }

/* --------------------------------------------------------------------------
   Cancel button
   -------------------------------------------------------------------------- */
.tudatos-btn--cancel {
    background: none;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.tudatos-btn--cancel:hover {
    background: #d63638;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .tudatos-account-row {
        flex-direction: column;
        gap: 2px;
    }
    .tudatos-account-value {
        text-align: left;
    }
    .tudatos-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
