/*
 * AUTH.CSS — Estilos para login, logout y feedback
 * ==================================================
 * Usado por: auth/login.php, auth/logout.php, auth/feedback.php
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

/*--------------------------- CARD BASE ---------------------------*/

.auth-card {
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    width: 100%;
}

.auth-card--login    { border-top: 3px solid #4f46e5; max-width: 400px; padding: 40px; }
.auth-card--logout   { border-top: 3px solid #ef4444; max-width: 380px; padding: 36px 40px; text-align: center; }
.auth-card--feedback { border-top: 3px solid #059669; max-width: 560px; padding: 40px; }

/*--------------------------- LOGIN ---------------------------*/

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

.login-header__icon {
    width: 36px;
    height: 36px;
    color: #4f46e5;
    margin-bottom: 12px;
}

.login-header h1 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.login-header p  { color: #6b7280; font-size: 13px; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus       { border-color: #4f46e5; }
.form-group input::placeholder { color: #4b5563; }

.btn-login {
    width: 100%;
    background: #4f46e5;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
    font-family: inherit;
}
.btn-login:hover  { background: #4338ca; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

/*--------------------------- LOGOUT ---------------------------*/

.logout-icon {
    width: 48px;
    height: 48px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ef4444;
}
.logout-icon svg { width: 22px; height: 22px; }

.auth-card--logout h1 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.auth-card--logout p  { color: #6b7280; font-size: 13px; line-height: 1.6; margin-bottom: 28px; }
.auth-card--logout p strong { color: #9ca3af; }

/*--------------------------- FEEDBACK ---------------------------*/

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.card-header__left { display: flex; align-items: center; gap: 12px; }

.card-icon {
    width: 38px;
    height: 38px;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #10b981;
}
.card-icon svg { width: 20px; height: 20px; }

.card-title { color: #fff; font-size: 18px; font-weight: 600; }
.card-sub   { color: #6b7280; font-size: 12px; margin-top: 2px; }

.existing-box {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.existing-meta {
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.existing-text {
    color: #b6babe;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.form-label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    min-height: 200px;
    background: #1a1a1a;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: #d4d4d4;
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    padding: 14px 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
textarea:focus        { border-color: #059669; }
textarea::placeholder { color: #4b5563; }

.counter {
    text-align: right;
    font-size: 11px;
    color: #4b5563;
    margin-top: 5px;
}
.counter.warn { color: #f59e0b; }
.counter.over { color: #ef4444; }

/*--------------------------- COMPARTIDOS ---------------------------*/

/* Alertas */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert svg { width: 15px; height: 15px; flex-shrink: 0; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }

/* Error box login */
.error-box {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Acciones */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 10px;
}

.actions--center { justify-content: center; }
.actions-right   { display: flex; gap: 8px; }

/* Botones */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s, transform 0.15s;
    font-family: inherit;
    cursor: pointer;
}
.btn-back svg { width: 14px; height: 14px; }
.btn-back:hover { border-color: #555; color: #9ca3af; transform: translateY(-1px); }

.btn-cancel {
    padding: 9px 16px;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s, transform 0.15s;
    font-family: inherit;
}
.btn-cancel:hover { border-color: #555; color: #9ca3af; transform: translateY(-1px); }

.btn-submit {
    padding: 9px 24px;
    background: #059669;
    border: 1px solid #059669;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-submit:hover  { background: #047857; border-color: #047857; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.btn-confirm {
    padding: 9px 20px;
    background: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-confirm:hover  { background: #b91c1c; border-color: #b91c1c; transform: translateY(-1px); }
.btn-confirm:active { transform: translateY(0); }

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: 5px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-edit:hover { border-color: #4f46e5; color: #a5b4fc; transform: translateY(-1px); }

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #3d3d3d;
    border-radius: 5px;
    color: #6b7280;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-logout svg { width: 12px; height: 12px; }
.btn-logout:hover { border-color: #ef4444; color: #ef4444; }

/*--------------------------- RESPONSIVE ---------------------------*/

@media (max-width: 480px) {
    .auth-card--login    { padding: 28px 20px; }
    .auth-card--logout   { padding: 28px 20px; }
    .auth-card--feedback { padding: 24px 18px; }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-back,
    .btn-submit,
    .btn-cancel,
    .btn-confirm { justify-content: center; text-align: center; }
    .actions--center { flex-direction: row; }
}