.tbp-login-body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.tbp-login-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 50%, #ffa366 100%);
    z-index: 0;
    overflow: hidden;
}

.tbp-login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.tbp-login-bg::after {
    content: '🎾';
    position: absolute;
    font-size: 400px;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: tbp-float 20s ease-in-out infinite;
}

@keyframes tbp-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.tbp-login-shapes {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.tbp-login-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: tbp-shape-float 15s ease-in-out infinite;
}

.tbp-login-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tbp-login-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.tbp-login-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.tbp-login-shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes tbp-shape-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.1); opacity: 0.5; }
}

.tbp-login-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.tbp-login-logo {
    margin-bottom: 32px;
    text-align: center;
    animation: tbp-logo-enter 0.8s ease-out;
    border-radius:10px
}

@keyframes tbp-logo-enter {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tbp-login-logo img {
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.tbp-login-logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tbp-login-logo-icon {
    font-size: 72px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: tbp-logo-bounce 2s ease-in-out infinite;
}

@keyframes tbp-logo-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tbp-login-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.tbp-login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: tbp-card-enter 0.6s ease-out;
}

@keyframes tbp-card-enter {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tbp-login-header {
    text-align: center;
    margin-bottom: 36px;
}

.tbp-login-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.tbp-login-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

.tbp-login-header p strong {
    color: #ff6b00;
    font-weight: 700;
    font-family: 'Vazirmatn', monospace;
}

.tbp-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tbp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbp-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbp-form-label i {
    color: #ff6b00;
    font-size: 14px;
}

.tbp-input-wrapper {
    position: relative;
}

.tbp-form-input {
    width: 100%;
    padding: 16px 52px 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    background: white;
    color: #1f2937;
    transition: all 0.3s ease;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.tbp-form-input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.tbp-form-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.tbp-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.tbp-form-input:focus ~ .tbp-input-icon {
    color: #ff6b00;
}

.tbp-form-hint {
    font-size: 12px;
    color: #ef4444;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 8px;
}

.tbp-btn-primary {
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Vazirmatn', sans-serif;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.tbp-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.tbp-btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.tbp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.45);
}

.tbp-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.tbp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.tbp-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    margin: 8px 0 16px;
}

.tbp-otp-input {
    width: 58px;
    height: 68px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', monospace;
    caret-color: #ff6b00;
}

.tbp-otp-input:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
    transform: translateY(-2px) scale(1.05);
}

.tbp-otp-input.filled {
    border-color: #ff6b00;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d1 100%);
    color: #ff6b00;
}

.tbp-error-message {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: tbp-shake 0.4s ease;
}

@keyframes tbp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.tbp-login-resend {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1.5px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tbp-resend-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tbp-resend-timer i {
    color: #ff6b00;
    font-size: 16px;
}

.tbp-resend-timer strong {
    color: #ff6b00;
    font-weight: 800;
    font-family: 'Vazirmatn', monospace;
    min-width: 45px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
}

.tbp-resend-btn {
    padding: 12px 24px;
    background: white;
    color: #ff6b00;
    border: 2px solid #ff6b00;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Vazirmatn', sans-serif;
}

.tbp-resend-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.tbp-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tbp-change-phone-btn {
    padding: 8px 16px;
    background: transparent;
    color: #6b7280;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Vazirmatn', sans-serif;
}

.tbp-change-phone-btn:hover {
    color: #ff6b00;
}

.tbp-login-footer {
    margin-top: 28px;
    text-align: center;
}

.tbp-login-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tbp-login-footer i {
    color: #10b981;
    font-size: 14px;
}

.tbp-login-success {
    text-align: center;
}

.tbp-success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
    animation: tbp-success-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 8px 16px rgba(16, 185, 129, 0.3));
}

@keyframes tbp-success-bounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.tbp-login-success h2 {
    font-size: 24px;
    font-weight: 800;
    color: #10b981;
    margin: 0 0 10px 0;
}

.tbp-login-success p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.tbp-success-loader {
    display: flex;
    justify-content: center;
}

.tbp-success-loader .tbp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: tbp-spin 0.8s linear infinite;
}

@keyframes tbp-spin {
    to { transform: rotate(360deg); }
}

.tbp-login-dark-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.tbp-dark-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b00;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tbp-dark-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tbp-dark-icon-light { display: none; }
.tbp-dark-icon-dark { display: inline-block; }

.dark .tbp-dark-icon-light { display: inline-block; }
.dark .tbp-dark-icon-dark { display: none; }

.dark .tbp-login-bg {
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
}

.dark .tbp-login-bg::before {
    background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.1) 0%, transparent 40%);
}

.dark .tbp-login-bg::after {
    opacity: 0.05;
}

.dark .tbp-login-shape {
    background: rgba(255, 107, 0, 0.08);
}

.dark .tbp-login-logo-text {
    color: white;
}

.dark .tbp-login-card {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(55, 65, 81, 0.5);
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.dark .tbp-login-header h2 {
    color: #f3f4f6;
}

.dark .tbp-login-header p {
    color: #9ca3af;
}

.dark .tbp-form-label {
    color: #d1d5db;
}

.dark .tbp-form-input {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .tbp-form-input:focus {
    border-color: #ff6b00;
    background: #0f172a;
}

.dark .tbp-form-input::placeholder {
    color: #6b7280;
}

.dark .tbp-otp-input {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .tbp-otp-input.filled {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 133, 51, 0.1) 100%);
    color: #ff8533;
    border-color: #ff6b00;
}

.dark .tbp-resend-timer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-color: #374151;
    color: #9ca3af;
}

.dark .tbp-resend-btn {
    background: transparent;
}

.dark .tbp-change-phone-btn {
    color: #9ca3af;
}

.dark .tbp-login-footer p {
    color: #6b7280;
}

.dark .tbp-login-success h2 {
    color: #10b981;
}

.dark .tbp-login-success p {
    color: #9ca3af;
}

.dark .tbp-dark-btn {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(55, 65, 81, 0.5);
}

@media (max-width: 480px) {
    .tbp-login-wrapper {
        padding: 20px 16px;
    }

    .tbp-login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .tbp-login-header h2 {
        font-size: 22px;
    }

    .tbp-login-header p {
        font-size: 13px;
    }

    .tbp-login-logo-icon {
        font-size: 56px;
    }

    .tbp-login-logo-text {
        font-size: 22px;
    }

    .tbp-otp-input {
        width: 50px;
        height: 60px;
        font-size: 22px;
    }

    .tbp-otp-inputs {
        gap: 6px;
    }

    .tbp-login-dark-toggle {
        top: 12px;
        left: 12px;
    }

    .tbp-dark-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .tbp-btn-primary {
        padding: 14px 20px;
        font-size: 14px;
    }

    .tbp-form-input {
        padding: 14px 48px 14px 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .tbp-otp-input {
        width: 44px;
        height: 54px;
        font-size: 20px;
    }
}

.tbp-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 133, 51, 0.1) 100%);
    color: #ff6b00;
    border: 1.5px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: tbp-badge-pulse 2s ease-in-out infinite;
}

@keyframes tbp-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tbp-welcome-badge i {
    font-size: 14px;
}

.dark .tbp-welcome-badge {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 133, 51, 0.15) 100%);
    border-color: rgba(255, 107, 0, 0.3);
}

.tbp-required-star {
    color: #ef4444;
    font-weight: 700;
    margin-right: 2px;
}

.tbp-autosubmit-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    animation: tbp-pulse 1.5s ease-in-out infinite;
}

@keyframes tbp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tbp-autosubmit-hint i {
    color: #3b82f6;
}

.dark .tbp-autosubmit-hint {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.tbp-login-card:has(.tbp-welcome-badge) {
    animation: tbp-card-enter 0.6s ease-out, tbp-card-glow 3s ease-in-out infinite;
}

@keyframes tbp-card-glow {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
    50% { box-shadow: 0 20px 60px rgba(255, 107, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 40px rgba(255, 107, 0, 0.1); }
}

.dark .tbp-login-card:has(.tbp-welcome-badge) {
    animation: tbp-card-enter 0.6s ease-out, tbp-card-glow-dark 3s ease-in-out infinite;
}

@keyframes tbp-card-glow-dark {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset; }
    50% { box-shadow: 0 20px 60px rgba(255, 107, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 40px rgba(255, 107, 0, 0.15); }
}