/* ==========================================================
   Launchly — Auth Layout
   Usato da: login, register, forgot-password, reset-password
   ========================================================== */

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

body {
    font-family: 'Figtree', sans-serif;
    min-height: 100vh;
    background: #f1f4f9;
}

/* ================================================================
   AUTH CONTAINER (split 65/35)
   ================================================================ */

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ---- Image Side ---- */
.auth-image {
    flex: 0 0 65%;
    background: linear-gradient(135deg, #7C3AED 0%, #9333ea 50%, #6D28D9 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: authPulse 15s infinite;
}

@keyframes authPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.auth-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 520px;
}

.auth-image-content .auth-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.auth-image-content .auth-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.auth-image-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
}

.auth-image-content p {
    font-size: 1.05rem;
    opacity: 0.88;
    line-height: 1.65;
    margin-bottom: 40px;
}

.auth-image-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-image-features .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.12);
    padding: 14px 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    text-align: left;
}

.auth-image-features .feature-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.auth-image-features .feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---- Form Side ---- */
.auth-form {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    background: white;
    overflow-y: auto;
}

.auth-form-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* ---- Logo ---- */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 32px;
}

.auth-logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

/* ---- Titolo ---- */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */

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

.form-group.mt-25 {
    margin-top: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 7px;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.975rem;
    transition: all 0.25s;
    outline: none;
    font-family: inherit;
    color: #1e293b;
}

.form-input:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-input.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.82rem;
    margin-top: 5px;
}

/* ---- Checkbox ---- */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #7C3AED;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #475569;
}

/* ---- Footer ---- */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.form-footer a {
    color: #7C3AED;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-footer a:hover { text-decoration: underline; }

.form-link-bottom {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
    font-size: 0.9rem;
}

.form-link-bottom a {
    color: #7C3AED;
    font-weight: 600;
    text-decoration: none;
}

.form-link-bottom a:hover { text-decoration: underline; }

/* ---- Session Status ---- */
.session-status {
    background: #f5f3ff;
    color: #4C1D95;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    border: 1px solid #c4b5fd;
    text-align: center;
}

/* ================================================================
   PULSANTI
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 0.975rem;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: inherit;
}

.btn-primary {
    background: #7C3AED;
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover { background: #e2e8f0; }

/* ================================================================
   PRIVACY (register)
   ================================================================ */

.privacy-section { margin-top: 20px; }

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.privacy-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7C3AED;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-item label {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

.privacy-item label a {
    color: #7C3AED;
    text-decoration: none;
}

.privacy-item label a:hover { text-decoration: underline; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .auth-image { flex: 0 0 50%; }
    .auth-form  { flex: 0 0 50%; }
}

@media (max-width: 768px) {
    .auth-container { flex-direction: column; }
    .auth-image {
        display: none;
    }
    .auth-form { flex: 1; padding: 32px 24px; min-height: 100vh; }
}
