/* Cywiz VR — CSS commun des écrans auth (lot 3.1). Chargé avant le <style> résiduel de chaque vue. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.login-left-brand {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.login-left-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.login-left-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-left-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(63, 177, 219, 0.3));
}

.login-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: filter 0.3s ease;
    z-index: 10;
    text-decoration: none;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.login-close:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(73%) sepia(26%) saturate(2822%) hue-rotate(231deg) brightness(99%) contrast(98%);
    transform: scale(1.1);
}

.login-close:active,
.login-close:focus {
    opacity: 1;
    outline: none;
    box-shadow: none;
    filter: brightness(0) saturate(100%) invert(42%) sepia(97%) saturate(1470%) hue-rotate(241deg) brightness(95%) contrast(97%);
    transform: scale(1.05);
}

.login-title sup {
    font-size: 0.5em;
    vertical-align: super;
}

.login-register-link {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.login-register-link a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight:400;
    transition: color 0.3s ease;
}

.login-register-link a:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.auth-nav-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-nav-buttons .btn-nav {
    flex: 1;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.auth-nav-buttons .btn-nav:hover {
    background: rgba(26, 31, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.auth-nav-buttons .btn-nav.active {
    background: rgba(26, 31, 46, 0.9);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    width: 100%;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    background: rgba(26, 31, 46, 0.8);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(63, 177, 219, 0.1);
    color: rgba(255, 255, 255, 0.95);
    outline: none;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
}

.login-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.login-forgot a:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.login-info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.password-requirements li {
    display: flex;
    align-items: center;
    font-size: 0.803rem;
    color: #000;
    flex: 0 0 calc(50% - 0.5rem);
    margin: 0;
}

.password-requirements li i {
    margin-right: 0.5rem;
    color: #000;
    font-size: 0.85rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: rgba(255, 255, 255, 0.9);
}
