/* ==========================================================================
   auth.css — Design Moderno de Autenticação Avel Dark
   ========================================================================== */

.avel-auth-page {
    background-color: #080b11;
    color: #f4f7fb;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    background: radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.08) 0%, transparent 60%), #080b11;
}

/* Background Ambient Glows */
.auth-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(29, 78, 216, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.shape-2 {
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.14) 0%, rgba(17, 24, 39, 0) 70%);
    border-radius: 50%;
    filter: blur(70px);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    z-index: 10;
    animation: authSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card */
.modern-auth-card {
    background: #111625;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 26px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.06);
    padding: 2.5rem 2.25rem 2.25rem;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Header & Brand Logo */
.auth-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-badge {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

.auth-logo-badge::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.2);
    filter: blur(16px);
    z-index: -1;
}

.auth-brand-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.35));
}

/* Inputs with Icons */
.modern-input-group {
    margin-bottom: 1.15rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    width: 19px;
    height: 19px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.18s ease;
}

.auth-input {
    width: 100%;
    height: 52px;
    background: #0b101c !important;
    border: 1px solid rgba(148, 163, 184, 0.13) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    padding-left: 46px !important;
    padding-right: 14px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.auth-input.pr-10 {
    padding-right: 46px !important;
}

.auth-input::placeholder {
    color: #64748b;
    font-size: 13.5px;
}

.auth-input:focus {
    background: #0d1424 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.input-icon-wrapper:focus-within .input-icon {
    color: #3b82f6;
}

/* Password Toggle Eye Button */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.password-toggle-btn.visible {
    color: #3b82f6;
}

/* Remember login row */
.auth-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.1rem 0 1.6rem;
}

.remember-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    background: #0b101c;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.custom-check-box svg {
    width: 11px;
    height: 11px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.15s ease;
}

.remember-checkbox-wrapper input[type="checkbox"]:checked + .custom-check-box {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.remember-checkbox-wrapper input[type="checkbox"]:checked + .custom-check-box svg {
    opacity: 1;
    transform: scale(1);
}

.remember-text {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.remember-checkbox-wrapper:hover .remember-text {
    color: #cbd5e1;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: #2563eb !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28) !important;
    cursor: pointer;
    transition: all 0.18s ease !important;
}

.auth-submit-btn:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4) !important;
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 17px;
    height: 17px;
    transition: transform 0.18s ease;
}

.auth-submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0.01em;
}

/* Alerts */
.alert.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    color: #fca5a5;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.alert-error svg {
    color: #ef4444;
    flex-shrink: 0;
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
