.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.75rem;
    box-shadow: 0 25px 60px rgba(2,1,45,0.12), 0 8px 20px rgba(74,44,179,0.08);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #02012d, #4a2cb3, #7c5cf0, #4a2cb3, #02012d);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.auth-logo img {
    height: 120px;
    width: auto;
}
.auth-title {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-title h4 {
    font-weight: 800;
    font-size: 1.35rem;
    color: #02012d;
    margin: 0 0 0.25rem;
    letter-spacing: -0.3px;
}
.auth-title p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.form-group .input-wrap {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 0.75rem;
    padding: 0 0.85rem;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.form-group .input-wrap:focus-within {
    border-color: #4a2cb3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74,44,179,0.08);
}
.form-group .input-wrap i {
    color: #9ca3af;
    font-size: 1.15rem;
    transition: color 0.25s ease;
}
.form-group .input-wrap:focus-within i {
    color: #4a2cb3;
}
.form-group .input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 0.7rem;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
}
.form-group .input-wrap input::placeholder {
    color: #9ca3af;
}
.form-group .input-wrap .toggle-pass {
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.15rem;
    padding: 0.5rem 0;
}
.form-group .input-wrap .toggle-pass:hover {
    color: #4a2cb3;
}
.btn-signin {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #02012d, #4a2cb3);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74,44,179,0.3);
    position: relative;
    overflow: hidden;
}
.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74,44,179,0.4);
}
.btn-signin:active {
    transform: translateY(0);
}
.btn-signin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-signin .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-floating-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.auth-floating-icons span {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(74,44,179,0.08);
    animation: floatIcon 20s infinite linear;
}
.auth-floating-icons span:nth-child(1)  { top: 5%; left: 3%; font-size: 2rem; animation-duration: 18s; animation-delay: 0s; }
.auth-floating-icons span:nth-child(2)  { top: 12%; right: 8%; font-size: 1.6rem; animation-duration: 22s; animation-delay: 1s; }
.auth-floating-icons span:nth-child(3)  { top: 25%; left: 6%; font-size: 1.8rem; animation-duration: 20s; animation-delay: 2s; }
.auth-floating-icons span:nth-child(4)  { top: 8%; left: 50%; font-size: 2.2rem; animation-duration: 25s; animation-delay: 0.5s; }
.auth-floating-icons span:nth-child(5)  { bottom: 30%; left: 2%; font-size: 1.4rem; animation-duration: 19s; animation-delay: 3s; }
.auth-floating-icons span:nth-child(6)  { top: 40%; right: 4%; font-size: 2rem; animation-duration: 21s; animation-delay: 1.5s; }
.auth-floating-icons span:nth-child(7)  { bottom: 20%; left: 10%; font-size: 1.5rem; animation-duration: 23s; animation-delay: 2.5s; }
.auth-floating-icons span:nth-child(8)  { top: 55%; left: 8%; font-size: 1.3rem; animation-duration: 17s; animation-delay: 4s; }
.auth-floating-icons span:nth-child(9)  { bottom: 15%; right: 12%; font-size: 1.7rem; animation-duration: 24s; animation-delay: 0.8s; }
.auth-floating-icons span:nth-child(10) { top: 70%; left: 4%; font-size: 1.9rem; animation-duration: 20s; animation-delay: 3.5s; }
.auth-floating-icons span:nth-child(11) { top: 5%; left: 80%; font-size: 1.5rem; animation-duration: 22s; animation-delay: 1.2s; }
.auth-floating-icons span:nth-child(12) { bottom: 5%; left: 40%; font-size: 1.6rem; animation-duration: 19s; animation-delay: 4.5s; }
.auth-floating-icons span:nth-child(13) { top: 30%; left: 90%; font-size: 1.4rem; animation-duration: 21s; animation-delay: 2.2s; }
.auth-floating-icons span:nth-child(14) { bottom: 10%; right: 25%; font-size: 1.8rem; animation-duration: 23s; animation-delay: 1.8s; }
.auth-floating-icons span:nth-child(15) { bottom: 40%; right: 6%; font-size: 2rem; animation-duration: 18s; animation-delay: 3.2s; }
.auth-floating-icons span:nth-child(16) { top: 45%; left: 95%; font-size: 1.3rem; animation-duration: 20s; animation-delay: 0.3s; }
.auth-floating-icons span:nth-child(17) { top: 60%; left: 2%; font-size: 1.7rem; animation-duration: 22s; animation-delay: 2.8s; }
.auth-floating-icons span:nth-child(18) { bottom: 50%; right: 15%; font-size: 1.5rem; animation-duration: 24s; animation-delay: 1.6s; }
.auth-floating-icons span:nth-child(19) { top: 15%; left: 20%; font-size: 1.2rem; animation-duration: 26s; animation-delay: 0.7s; }
.auth-floating-icons span:nth-child(20) { top: 75%; right: 8%; font-size: 1.6rem; animation-duration: 18s; animation-delay: 4.2s; }

@keyframes floatIcon {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    5%   { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}