/* Styles extracted from accounts/templates/accounts/login.html */

/* Contenedor centrado */
.login-container {
    display: flex;
    justify-content: center;
    padding-top: 80px;
}

/* Tarjeta */
.login-card {
    background: #151515;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    border: 1px solid #222;
}

/* Título */
.login-card h1 {
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Campos */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #ddd;
}

.field input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 16px;
}

.field input:focus {
    border-color: #675cff;
    box-shadow: 0 0 0 2px rgba(103, 92, 255, 0.3);
}

/* Botón */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #6a5af9, #816bff);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
    transition: .2s;
}

.btn-login:hover {
    background: linear-gradient(90deg, #5948f6, #7a61ff);
}

/* Errores */
.error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
}

/* Links inferiores */
.links {
    margin-top: 25px;
    text-align: center;
}

.links a {
    color: #7c86ff;
    text-decoration: none;
}

.links a:hover {
    color: #9aa0ff;
}

/* Social login */
.social-sep{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin:18px 0 10px;
    color:#9ca3af;
    font-size:14px;
}
.social-sep:before,.social-sep:after{
    content:"";
    flex:1;
    height:1px;
    background:rgba(255,255,255,0.10);
}
.social-login{
    margin-top:8px;
}
.social-title{
    text-align:center;
    color:#cbd5e1;
    margin:0 0 12px;
    font-size:14px;
}
.social-form{
    margin:0 0 10px;
}
.social-form:last-child{
    margin-bottom:0;
}
.btn-social{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:12px 14px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.10);
    background:#0b1220;
    color:#e5e7eb;
    cursor:pointer;
    transition:.2s;
    appearance:none;
    -webkit-appearance:none;
    font: inherit;
}
.btn-social:hover{
    border-color: rgba(124,134,255,0.45);
}
.social-icon{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    background:rgba(255,255,255,0.08);
    font-weight:700;
}

.social-svg{
    width:16px;
    height:16px;
    display:block;
}
.btn-google .social-icon{
    background:rgba(255,255,255,0.95);
}
.btn-github .social-icon{
    background:#111827;
}
.btn-apple .social-icon{ font-weight: 900; }
.social-img{width:18px;height:18px;display:block;}

/* Light theme overrides for login */
:root[data-theme="light"] .login-card {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .login-card h1 {
    color: #111827;
}

:root[data-theme="light"] .login-card .field label {
    color: #111827;
}

:root[data-theme="light"] .login-card .field input {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

:root[data-theme="light"] .login-card .field input::placeholder {
    color: #9ca3af;
}

:root[data-theme="light"] .login-card .links p,
:root[data-theme="light"] .login-card .links a,
:root[data-theme="light"] .login-card .social-title {
    color: #4b5563;
}


/* Mensaje de error (AJAX) */
.error-message{
    /* Separación respecto al campo "Email" */
    margin: 12px 0 16px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255, 70, 70, 0.08);
    color: #ffb3b3;
    font-size: 0.95rem;
}

/* ===========================
   Turnstile Modal (Popup)
   =========================== */
.ts-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ts-modal.open{
    display: flex;
}

.ts-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.ts-dialog{
    position: relative;
    width: min(420px, 92vw);
    background: #151515;
    border: 1px solid #222;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    padding: 18px 18px 16px 18px;
    z-index: 1;
}

.ts-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ts-header h3{
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.ts-close{
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
}

.ts-close:hover{
    background: rgba(255,255,255,0.06);
}

.ts-widget{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.ts-error{
    /* Separación respecto al campo "Email" */
    margin: 12px 0 16px 0;
    color: #ffb3b3;
    font-size: 0.9rem;
}

