/* layouts/login.blade.php: the standalone public pages, with the members' login look (login-socios.css). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: #F5F9FC;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
}

.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 15px;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 520px;
}

/* Logo and page title, as the members' login */
.login-brand {
    padding: 32px 48px 0;
    text-align: center;
}
.login-brand img { width: 80px; height: auto; margin-bottom: 24px; }
.login-brand h1 { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }

.login-body { padding: 24px 48px 32px; }
.login-body p { margin-bottom: 14px; }
.login-body p:last-child { margin-bottom: 0; }
.login-body a { color: #2F2E6A; font-weight: 500; }
.login-body ul, .login-body ol { padding-left: 1.2em; margin-bottom: 14px; }
.login-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.login-body th, .login-body td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #E5E5E5; }
.login-body form + p, .login-body form + form { margin-top: 14px; }

/* Messages */
.login-alert {
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}
.login-alert-info  { background: #EEF3F8; color: #1a1a1a; }
.login-alert-error { background: #FDECEA; color: #B3261E; }

/* Fields */
.field { margin-bottom: 20px; text-align: left; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #F2F2F2;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    outline: none;
    transition: border-color .15s, background .15s;
}
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus, .field textarea:focus {
    background: #fff;
    border-color: #2F2E6A;
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #D93025; background: #fff; }
.field textarea { min-height: 140px; resize: vertical; display: block; }
.field select { appearance: auto; }
.field input[type=radio], .field input[type=checkbox] { accent-color: #2F2E6A; }
.field-error { font-size: 13px; color: #D93025; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* Password field with show/hide toggle */
.field-pw { position: relative; }
.field-pw input { padding-right: 40px; }
.field-pw-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #888; font-size: 15px; padding: 2px; line-height: 1;
}
.field-pw-toggle:hover { color: #2F2E6A; }

/* Remember me */
.login-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; cursor: pointer; }
.login-remember input[type=checkbox] { width: 16px; height: 16px; accent-color: #2F2E6A; cursor: pointer; flex-shrink: 0; }
.login-remember span { font-size: 13px; color: #545454; }

/* Main button, as "Entrar" on the members' login */
.login-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #2F2E6A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px 0 14px;
    text-align: center;
    text-decoration: none;
}
.login-btn:hover  { background: #25245A; }
.login-btn:active { transform: scale(.99); }

.login-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #545454;
    border-top: 1px solid #E5E5E5;
    margin: 0 48px;
}

@media (max-width: 480px) {
    .login-brand { padding: 28px 24px 0; }
    .login-body { padding: 20px 24px 28px; }
    .login-footer { margin: 0 24px; }
}
