/* 
========================================================
   SmartPark High-End Login & Welcome Animation Styles
========================================================
*/

.sp-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 45, 80, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.sp-login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sp-login-card-anim {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 44px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 380px;
    width: 90%;
    transform: scale(0.85) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-login-overlay.active .sp-login-card-anim {
    transform: scale(1) translateY(0);
}

.sp-login-spinner-ring {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-login-spinner-ring svg.spinner-svg {
    animation: spRotate 1.4s linear infinite;
    width: 100%;
    height: 100%;
}

.sp-login-spinner-ring svg.spinner-svg circle {
    stroke: #005A9C;
    stroke-linecap: round;
    stroke-dasharray: 130;
    stroke-dashoffset: 40;
    transform-origin: center;
    animation: spDash 1.4s ease-in-out infinite;
}

@keyframes spRotate {
    100% { transform: rotate(360deg); }
}

@keyframes spDash {
    0% { stroke-dashoffset: 130; }
    50% { stroke-dashoffset: 30; transform: rotate(135deg); }
    100% { stroke-dashoffset: 130; transform: rotate(450deg); }
}

.sp-success-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    animation: spPopSuccess 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sp-success-circle svg {
    width: 36px;
    height: 36px;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: spCheckDraw 0.4s 0.2s ease forwards;
}

@keyframes spPopSuccess {
    0% { transform: scale(0.3); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spCheckDraw {
    to { stroke-dashoffset: 0; }
}

.sp-login-anim-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #005A9C;
}

.sp-login-anim-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.4;
}

.sp-role-badge {
    background: #E0F2FE;
    color: #0369A1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
