/* Franchise Authentication & Login Design */

.login-hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(0, 56, 168, 0.05) 0%, #f0f5fb 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

/* Red/White Glowing Orbs Animation - More Premium */
.login-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    animation: authFloat 20s infinite alternate ease-in-out;
}

.orb-red {
    background: radial-gradient(circle, #ce1126 0%, transparent 70%);
    top: -15%;
    right: -10%;
}

.orb-white {
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}

@keyframes authFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(8%, 12%) scale(1.1) rotate(20deg);
    }

    66% {
        transform: translate(-12%, 5%) scale(0.9) rotate(-15deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 56px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 30px;
    font-weight: 800;
    color: #011333;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.login-header h1 em {
    font-style: normal;
    color: #ce1126;
    background: linear-gradient(135deg, #ce1126, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.login-step {
    display: none;
}

.login-step.active {
    display: block;
    animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Components */
.sg-field {
    margin-bottom: 24px;
}

.sg-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sg-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #111827;
}

.sg-input:focus {
    border-color: #0038a8;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(0, 56, 168, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.sg-btn {
    width: 100%;
    background: linear-gradient(135deg, #0038a8, #002776);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 56, 168, 0.25);
}

.sg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 56, 168, 0.35);
    filter: brightness(1.1);
}

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

.sg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.otp-input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    transition: all 0.2s;
    color: #0038a8;
}

.otp-input:focus {
    border-color: #0038a8;
    outline: none;
    box-shadow: 0 0 0 5px rgba(0, 56, 168, 0.08);
    transform: scale(1.05);
}

.back-btn {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    color: #0038a8;
    transform: translateX(-4px);
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.05);
}

.login-footer-text {
    margin-top: 36px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.login-footer-text a {
    color: #0038a8;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.login-footer-text a:hover {
    text-decoration: underline;
    color: #002776;
}