:root {
    --azul-primario: #1B4F91;
    --azul-acento:   #2E7FD6;
    --dorado:        #F5A623;
    --gris-fondo:    #FAFAFA;
    --gris-borde:    #E2E5EA;
    --texto:         #1F2937;
    --error:         #D64545;
    --exito:         #2E9E5B;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gris-fondo);
    color: var(--texto);
}

a { color: var(--azul-acento); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(27, 79, 145, 0.08);
}

.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { max-width: 220px; }

h1.auth-title {
    font-size: 20px;
    color: var(--azul-primario);
    text-align: center;
    margin: 0 0 24px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--texto);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--azul-acento);
    box-shadow: 0 0 0 3px rgba(46, 127, 214, 0.15);
}

.role-select {
    display: flex;
    gap: 10px;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border: 2px solid var(--gris-borde);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.role-option input { display: none; }
.role-option.selected {
    border-color: var(--dorado);
    background: rgba(245, 166, 35, 0.08);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--dorado);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

.btn:hover { background: #e0951a; }

.btn-secondary {
    background: var(--azul-primario);
    color: #fff;
}
.btn-secondary:hover { background: #163f74; }

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}
.alert-error { background: #FCE8E8; color: var(--error); }
.alert-success { background: #E7F7EC; color: var(--exito); }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.lang-switcher a {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #6b7280;
    font-weight: 600;
}
.lang-switcher a:hover { background: var(--gris-fondo); text-decoration: none; }
.lang-switcher a.lang-active { background: var(--azul-primario); color: #fff; }
