/* ============================================================
   CRISTALCRYPT - AUTH CSS
   ============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100%;
    /*overflow-y: auto;*/
    background: #0b1020 !important;
    color: #e5ecff !important;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 60px 0 0 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.links {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
}
.links a {
	color: #8fb4ff;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}
.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 22px 18px;
    background: radial-gradient(circle at top, #1b2340 0, #101526 55%, #070913 100%);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(101, 168, 255, 0.35),
        0 0 22px rgba(101, 168, 255, 0.55),
        0 0 55px rgba(101, 168, 255, 0.35),
        0 8px 35px rgba(0, 0, 0, 0.75);     
}

h1.title {
    margin: 0 0 10px;
    font-size: 28px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #f3f6ff;
    text-shadow:
        0 0 6px rgba(243, 246, 255, 0.6),
        0 0 12px rgba(243, 246, 255, 0.35);
}

.subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #c3c9e8;
    text-align: center;
}

.message {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #f3f6ff;
    text-align: center;
}

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9fa8d8;
}

input,
select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 7px;
    border: 1px solid #2b355a;
    background: rgba(5, 8, 20, 0.9);
    color: #e5ecff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    border-color: #4b7dff;
    box-shadow: 0 0 0 1px rgba(75, 125, 255, 0.5);
    background: rgba(8, 12, 30, 0.95);
}

/* Boutons mode nuit */
button,
a.button {
    display: inline-block;
    width: 100%;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4b7dff, #7fd4ff);
    color: #050814;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

button:hover,
a.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    filter: brightness(1.05);
}

button:active,
a.button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* Bouton secondaire */
button.secondary {
    background: transparent;
    border: 1px solid #3b456e;
    color: #c7cff5;
    text-transform: none;
    letter-spacing: 0.03em;
    font-weight: 500;
}

button.secondary:hover {
    background: rgba(24, 32, 64, 0.9);
    box-shadow: none;
}

.rules {
    font-size: 0.9em;
    margin-top: 5px;
    color: #c0392b;
}
.rules.valid {
    color: #27ae60;
}

/* Wrapper du champ */
.password-wrapper {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    user-select: none;
}

.toggle-eye.eye-closed::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    top: 9px;
    left: -1px;
    pointer-events: none;
}


/* ============================================================
   NOT-A-BOT - MODE NUIT
   ============================================================ */

.cristal-tile {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 600;
    color: black;
    background-color: var(--cristal-color);
    border: 1.5px solid rgba(75,125,255,1.0);
    box-shadow: 0 0 12px rgba(75,125,255,0.75);
}

.cristal-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.cristal-tile span {
    position: absolute;
    z-index: 2;
    inset: 0;
    color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-1px);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.35), 0 0 3px rgba(0, 0, 0, 0.1);
}

.cristal {
    width: 50px;
    height: 70px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-color: var(--cristal-color);
    border: 1px solid rgba(30,46,91,1.0);
    box-shadow: 0 0 8px rgba(75,125,255,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cristal img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

.cristal:hover {
    transform: scale(1.06);
    border-color: rgba(48,78,157,1.0);
    box-shadow: 0 0 8px rgba(75,125,255,0.45);
}

.cristal.selected {
    transform: scale(1.12);
    border-color: #4b7dff;
    box-shadow: 0 0 12px rgba(75,125,255,1.0);
}

.char-cristal {
    width: 50px;
    height: 70px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(75,125,255,0.25);
    box-shadow: 0 0 8px rgba(75,125,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #4b7dff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.char-cristal:hover {
    transform: scale(1.06);
    border-color: rgba(75,125,255,0.55);
    box-shadow: 0 0 8px rgba(75,125,255,0.45);
}

.char-cristal.selected {
    transform: scale(1.12);
    border-color: #4b7dff;
    box-shadow: 0 0 12px rgba(75,125,255,0.65);
}

.press-row,
.first-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.first-row {
    margin-top: 20px;
    margin-bottom: 15px;
}

.pressable {
    cursor: pointer;
}

.notabotqst {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #c3c9e8;
    text-align: center;
}

.copyright {
    margin: 20px 0px 0px;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-align: center;
    color: rgba(136, 146, 166, 0.65);
}

.cc-footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.cc-footer-link:hover {
    color: rgba(136, 146, 166, 1);
	cursor: pointer;
}

.cc-footer-icon {
    height: 16px;
    width: auto;
    vertical-align: -3px;
    margin: 0 2px;
    opacity: 1;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
        margin: 0;
        padding: 5px 5px 5px 5px;
    }

    .auth-container {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 20px 16px 22px;
        border-radius: 12px;
    }

    h1 {
        font-size: 18px;
    }

    input,
    select {
        font-size: 14px;
        padding: 11px;
    }

    button {
        font-size: 14px;
        padding: 12px;
    }
}