/* ============================= */
/*        ACCESSO STYLES         */
/* ============================= */

/* AUTH CONTAINER */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.auth-box {
    background: transparent;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.auth-box:hover::before {
    transform: scaleX(1);
}

.auth-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.auth-box h3 {
    color: White;
    margin-top: 0;
    position: relative;
}



.auth-box h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-2);
    margin-top: 10px;
    border-radius: 2px;
}

.auth-box form {
    margin-bottom: 1rem;
}

/* Form group styling */
.auth-box .form-group {
    margin-bottom: 1.25rem;
}

.auth-box .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-box .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.auth-box .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Auth buttons */
.auth-box button {
    width: 100%;
    padding: 0.85rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'SEGO', 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-box button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.auth-box button:hover::before {
    left: 100%;
}

.auth-box button:hover {
    background: var(--accent-2);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

.auth-box button.secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    margin-top: 0.5rem;
}

.auth-box button.secondary:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

/* Auth info section */
.auth-info {
    background: transparent;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.auth-info:hover {
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.2);
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.auth-info li {
    padding: 0.5rem 0;
    color: black;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.auth-info li:hover {
    transform: translateX(5px);
    color: var(--accent-2);
}

.auth-info li::before {
    content: '✓';
    color: var(--accent-2);
    font-weight: bold;
}

/* Auth toggle links */
.auth-toggle {
    text-align: center;
    margin-top: 1rem;
}

.auth-toggle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-toggle a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-2);
    transition: width 0.3s ease;
}

.auth-toggle a:hover {
    color: var(--accent-2);
}

.auth-toggle a:hover::after {
    width: 100%;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak { width: 33%; background: #e74c3c; }
.password-strength-bar.medium { width: 66%; background: #f39c12; }
.password-strength-bar.strong { width: 100%; background: #27ae60; }

/* Remember me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.remember-me label {
    color: rgba(255, 255, 255, 0.8);
}

/* Form validation states */
.auth-box .form-group.error input {
    border-color: #e74c3c;
}

.auth-box .form-group.error label {
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.auth-box .form-group.error .error-message {
    display: block;
}

/* Success message */
.auth-success {
    background: transparent;
    color: #27ae60;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
    animation: fadeInUp 0.4s ease;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.auth-success.visible {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-box, .auth-info {
        padding: 1.5rem;
    }
    
    .auth-box:hover {
        transform: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .auth-box,
    .auth-box::before,
    .auth-box button,
    .auth-info,
    .auth-info li,
    .auth-toggle a {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
