/* =============================================================================
   Plenus Auth
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2328;
    background-color: #f6f8fa;
}

/* --------------------------------------------------------------------------
   Layout principal
   -------------------------------------------------------------------------- */

.gh-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 30px 15px 15px;
}

/* --------------------------------------------------------------------------
   Cabecera con logo
   -------------------------------------------------------------------------- */

.gh-header {
    margin-bottom: 20px;
}

.gh-header img {
	width: 200px;
	height: 200px;
	opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Contenedor principal (ancho fijo, centrado)
   -------------------------------------------------------------------------- */

.gh-main {
    width: 100%;
    max-width: 400px;
}

/* --------------------------------------------------------------------------
   Caja / card
   -------------------------------------------------------------------------- */

.gh-box {
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.gh-box h1 {
    font-size: 24px;
    font-weight: 300;
    text-align: center;
    margin: 0 0 16px;
    color: #1f2328;
}

/* --------------------------------------------------------------------------
   Formulario
   -------------------------------------------------------------------------- */

.gh-form-group {
    margin-bottom: 15px;
}

.gh-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2328;
    margin-bottom: 6px;
}

/* Fila con label + enlace "Forgot password?" alineados */
.gh-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.gh-label-row label {
    margin-bottom: 0;
}

.gh-forgot-link {
    font-size: 12px;
    color: #0969da;
    text-decoration: none;
}

.gh-forgot-link:hover {
    text-decoration: underline;
}

/* Campos de texto */
.gh-input {
    width: 100%;
    padding: 5px 12px;
    font-size: 14px;
    line-height: 20px;
    color: #1f2328;
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    outline: none;
    height: 32px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gh-input:focus {
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

/* Botón principal */
.gh-btn-primary {
    width: 100%;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #ffffff;
    background-color: #1f883d;
    border: 1px solid rgba(31, 35, 40, 0.15);
    border-radius: 6px;
    cursor: pointer;
    height: 32px;
    margin-top: 16px;
    transition: background-color 0.15s ease;
}

.gh-btn-primary:hover {
    background-color: #1a7f37;
}

.gh-btn-primary:active {
    background-color: #187733;
}

/* --------------------------------------------------------------------------
   Mensaje de error
   -------------------------------------------------------------------------- */

.gh-error {
    background-color: #fff0f0;
    border: 1px solid rgba(255, 129, 130, 0.4);
    border-radius: 6px;
   padding: 12px;
   margin-bottom: 16px;
    font-size: 14px;
    color: #d1242f;
}

.gh-error h2 {
   font-size: 14px;
   font-weight: 600;
   margin: 0 0 8px;
   color: #d1242f;
}

.gh-error p {
   margin: 4px 0;
   font-size: 13px;
   line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Caja de registro ("New to GitHub?")
   -------------------------------------------------------------------------- */

.gh-signup-box {
    text-align: center;
    padding: 16px;
}

.gh-signup-box p {
    margin: 0;
    font-size: 14px;
    color: #1f2328;
}

.gh-signup-box a {
    color: #0969da;
    text-decoration: none;
}

.gh-signup-box a:hover {
    text-decoration: underline;
}

.gh-google-box {
    padding: 12px 16px;
}

.gh-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 16px;
    color: #1f2328;
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gh-btn-google:hover {
    background-color: #f6f8fa;
    border-color: #b0b7c0;
}

.gh-btn-google:focus-visible {
    outline: 3px solid rgba(9, 105, 218, 0.3);
    outline-offset: 2px;
}

.gh-google-icon {
    display: block;
    flex: none;
}

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */

.gh-footer {
    margin-top: 40px;
    padding-bottom: 24px;
}

.gh-footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-footer li a {
    font-size: 12px;
    color: #636c76;
    text-decoration: none;
}

.gh-footer li a:hover {
    color: #0969da;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Botón secundario (denegar / cancelar)
   -------------------------------------------------------------------------- */

.gh-btn-secondary {
    width: 100%;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #1f2328;
    background-color: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    height: 32px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gh-btn-secondary:hover {
    background-color: #f6f8fa;
    border-color: #b0b7c0;
}

/* --------------------------------------------------------------------------
   Pantalla de atributos de usuario (consentimiento)
   -------------------------------------------------------------------------- */

/* Descripción del servicio solicitante */
.consent-service-info {
    font-size: 14px;
    color: #1f2328;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0d7de;
}

.consent-service-info strong {
    font-weight: 600;
}

/* Lista de atributos a compartir */
.consent-attr-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.consent-attr-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f6f8fa;
    gap: 12px;
}

.consent-attr-item:last-child {
    border-bottom: none;
}

.consent-attr-key {
    font-size: 13px;
    font-weight: 600;
    color: #636c76;
    flex-shrink: 0;
}

.consent-attr-val {
    font-size: 13px;
    color: #1f2328;
    text-align: right;
    word-break: break-all;
}

/* Opciones de recordar consentimiento */
.consent-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #d0d7de;
}

.consent-options-label {
    font-size: 12px;
    font-weight: 600;
    color: #636c76;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.consent-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1f2328;
    cursor: pointer;
}

.consent-option input[type="radio"] {
    accent-color: #0969da;
    cursor: pointer;
}

/* Fila de botones Aceptar / Denegar */
.consent-actions {
    display: flex;
    gap: 8px;
}

.consent-actions .gh-btn-primary,
.consent-actions .gh-btn-secondary {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Pantalla de perfil / atributos de sesión (casLoginGenericSuccessView)
   -------------------------------------------------------------------------- */

/* Bloque del usuario autenticado */
.profile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin-bottom: 20px;
}

.profile-user-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #d0d7de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636c76;
}

.profile-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2328;
}

.profile-user-label {
    font-size: 12px;
    color: #636c76;
}

/* Título de sección */
.profile-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #636c76;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d0d7de;
}

/* Lista genérica de atributos (clave → valor) */
.profile-attr-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.profile-attr-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #f6f8fa;
    gap: 12px;
}

.profile-attr-item:last-child {
    border-bottom: none;
}

.profile-attr-key {
    font-size: 13px;
    font-weight: 600;
    color: #636c76;
    flex-shrink: 0;
}

.profile-attr-val {
    font-size: 13px;
    color: #1f2328;
    text-align: right;
    word-break: break-all;
}

/* Botón de cierre de sesión */
.gh-btn-danger {
    width: 100%;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #d1242f;
    background-color: #ffffff;
    border: 1px solid rgba(209, 36, 47, 0.4);
    border-radius: 6px;
    cursor: pointer;
    height: 32px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gh-btn-danger:hover {
    background-color: #fff0f0;
    border-color: #d1242f;
}

/* --------------------------------------------------------------------------
   Pantalla de éxito / success
   -------------------------------------------------------------------------- */

.gh-success-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f883d;
    margin: 0 auto;
}

.gh-success-box h1 {
    color: #1f883d;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.success-message {
    margin: 0;
    font-size: 14px;
    color: #636c76;
    line-height: 1.5;
}
