* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    background-image: var(--banner-url);
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    display: flex;
    min-height: 650px;
    position: relative;
}

.login-form-section {
    background: transparent;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    width: 45.45%;
    flex-shrink: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 40px;
}

.login-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    border-radius: 40px;
    z-index: -1;
}

.login-wrapper.success-mode .login-form-section {
    width: 100%;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 140px;
    height: auto;
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-header p {
    color: #6b6b6b;
    font-size: 0.9rem;
    margin-bottom: 32px;
    font-weight: 400;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: none;
}

.alert-danger {
    background: #fee;
    color: #c53030;
}

.alert-success {
    background: #e6fffa;
    color: #047857;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: none;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control::placeholder {
    color: #999;
}

.form-control:focus {
    outline: none;
    background: #ebebeb;
    box-shadow: 0 0 0 3px rgba(156, 115, 107, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle-icon:hover {
    color: #9c736b;
}

.recovery-link {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 24px;
}

.recovery-link a {
    color: #9c736b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.recovery-link a:hover {
    color: #7d5c56;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #9c736b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 115, 107, 0.3);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-login:hover {
    background: #8a6660;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 115, 107, 0.4);
}

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

.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.powered-by-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.powered-by-logo-img {
    max-height: 200px;
    max-width: 200px;
    object-fit: contain;
}

.social-login {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.social-btn.google {
    color: #ea4335;
}

.social-btn.apple {
    color: #000;
}

.social-btn.facebook {
    color: #1877f2;
}

.login-image-section {
    background: linear-gradient(180deg, #8b6d8f 0%, #d4a88c 50%, #e8c9a8 100%);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 54.55%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    border-radius: 0 40px 40px 0;
}

.login-wrapper.success-mode .login-image-section {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.illustration-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: var(--banner-url);
    background-size: cover;
    background-position: center;
    opacity: 1;
}

/* ========================================
   SUCCESS ANIMATION - COMPLETE REDESIGN
   ======================================== */

.login-form-section {
    position: relative;
}

.form-content {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-content.hidden {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
    pointer-events: none;
}

.success-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 30px;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
}

.success-animation.show {
    display: flex;
}

.success-animation::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid transparent;
    border-radius: 35px;
    background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
                linear-gradient(135deg, #9c736b 0%, #c59889 50%, #9c736b 100%) border-box;
    pointer-events: none;
    z-index: 0;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.success-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.success-stage {
    display: none;
    animation: stageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-stage.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

/* Success Icon Container */
.success-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    animation: iconEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconEnter {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-checkmark-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    animation: pulse 1s ease-in-out 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-checkmark-circle i {
    font-size: 3.5rem;
    color: white;
    animation: checkRotate 0.6s ease 0.3s backwards;
}

@keyframes checkRotate {
    from {
        transform: rotate(-90deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.success-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #10b981;
    border-radius: 50%;
    animation: ripple 1.5s ease-out 1;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Profile Section */
.success-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(156, 115, 107, 0.05) 0%, rgba(197, 152, 137, 0.08) 100%);
    border-radius: 20px;
    border: 1px solid rgba(156, 115, 107, 0.1);
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-avatar {
    position: relative;
    flex-shrink: 0;
}

.success-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.success-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    animation: badgeBounce 1s ease infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.success-avatar-badge i {
    font-size: 1rem;
    color: white;
}

.success-welcome-text {
    text-align: left;
    flex: 1;
}

.success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.success-username {
    background: linear-gradient(135deg, #9c736b 0%, #c59889 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-subtitle {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin: 0;
}

/* Stats Grid */
.success-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: slideInUp 0.8s ease 0.4s backwards;
}

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

.success-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.success-stat-card:hover {
    transform: translateY(-4px);
    border-color: #9c736b;
    box-shadow: 0 12px 32px rgba(156, 115, 107, 0.15);
}

.success-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.success-stat-card:nth-child(1) .success-stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.success-stat-card:nth-child(2) .success-stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.success-stat-card:nth-child(3) .success-stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.success-stat-card:hover .success-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.success-stat-content {
    text-align: center;
}

.success-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 4px;
}

.success-stat-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

/* Features Section */
.success-features-section {
    animation: slideInUp 0.8s ease 0.6s backwards;
}

.success-features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-align: center;
}

.success-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.success-feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.success-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 115, 107, 0.03) 0%, rgba(197, 152, 137, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-feature-card:hover::before {
    opacity: 1;
}

.success-feature-card:hover {
    transform: translateY(-6px);
    border-color: #9c736b;
    box-shadow: 0 16px 40px rgba(156, 115, 107, 0.15);
}

.success-feature-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-feature-card:nth-child(1) .success-feature-icon-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.success-feature-card:nth-child(2) .success-feature-icon-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.success-feature-card:nth-child(3) .success-feature-icon-box {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.success-feature-card:nth-child(4) .success-feature-icon-box {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.success-feature-card:hover .success-feature-icon-box {
    transform: scale(1.1);
}

.success-feature-card:nth-child(1):hover .success-feature-icon-box {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
}

.success-feature-card:nth-child(2):hover .success-feature-icon-box {
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.5);
}

.success-feature-card:nth-child(3):hover .success-feature-icon-box {
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.5);
}

.success-feature-card:nth-child(4):hover .success-feature-icon-box {
    box-shadow: 0 20px 50px rgba(250, 112, 154, 0.5);
}

.success-feature-icon-box i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.success-feature-card:nth-child(1) .success-feature-icon-box i {
    animation: iconFloat 3s ease-in-out infinite, iconPulse 2s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.success-feature-card:nth-child(2) .success-feature-icon-box i {
    animation: iconFloat 3.5s ease-in-out infinite, iconPulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s, 0.3s;
}

.success-feature-card:nth-child(3) .success-feature-icon-box i {
    animation: iconFloat 3.2s ease-in-out infinite, iconPulse 2.2s ease-in-out infinite;
    animation-delay: 1s, 0.6s;
}

.success-feature-card:nth-child(4) .success-feature-icon-box i {
    animation: iconFloat 3.8s ease-in-out infinite, iconPulse 2.8s ease-in-out infinite;
    animation-delay: 1.5s, 0.9s;
}

.success-feature-card:hover .success-feature-icon-box i {
    animation: iconBounce 0.6s ease-in-out;
    transform: scale(1.15);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

@keyframes iconBounce {
    0% {
        transform: scale(1) translateY(0);
    }
    40% {
        transform: scale(1.2) translateY(-8px);
    }
    60% {
        transform: scale(1.12) translateY(-4px);
    }
    80% {
        transform: scale(1.18) translateY(-6px);
    }
    100% {
        transform: scale(1.15) translateY(-5px);
    }
}

.success-feature-info {
    position: relative;
    z-index: 1;
}

.success-feature-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.success-feature-info p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Loading Section */
.success-loading-section {
    margin-top: 8px;
    animation: slideInUp 0.8s ease 0.8s backwards;
}

.success-progress-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.success-progress-bar {
    width: 100%;
    height: 8px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.success-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9c736b 0%, #c59889 50%, #9c736b 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    animation: progressFill 2.5s ease-out forwards, progressShimmer 1.5s linear infinite;
    box-shadow: 0 2px 8px rgba(156, 115, 107, 0.3);
}

@keyframes progressFill {
    to { width: 100%; }
}

@keyframes progressShimmer {
    to { background-position: 200% 0; }
}

.success-progress-text {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #9c736b;
}

.success-loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b6b6b;
    margin: 0;
}

.spinning-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.loading-dots span {
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Hide carousel indicators on desktop */
@media (min-width: 577px) {
    .success-features-carousel-indicators {
        display: none;
    }
}

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
}

.success-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: successFadeIn 0.8s ease;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

@keyframes successFadeIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 33px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.success-icon-wrapper i {
    font-size: 3.5rem;
    color: white;
    animation: iconFadeIn 0.5s ease 0.3s forwards;
    opacity: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

.success-message {
    margin-top: 20px;
}

.success-message h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.success-message p {
    font-size: 0.95rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* User Welcome Section */
.user-welcome {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.user-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 4px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: profileZoomIn 0.6s ease;
}

@keyframes profileZoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.user-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-greeting {
    margin-bottom: 40px;
}

.user-greeting h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.user-greeting p {
    font-size: 1rem;
    color: #6b6b6b;
}

.user-greeting .user-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    width: 100%;
    padding: 0 20px;
    scroll-behavior: smooth;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    animation: cardSlideUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.35s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.65s;
}

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

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.35);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.35);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 15px 40px rgba(250, 112, 154, 0.35);
}

.feature-icon i {
    color: white;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Individual icon animations with different delays for variety */
.feature-card:nth-child(1) .feature-icon i {
    animation: iconFloat 3s ease-in-out infinite, iconPulse 2s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.feature-card:nth-child(2) .feature-icon i {
    animation: iconFloat 3.5s ease-in-out infinite, iconPulse 2.5s ease-in-out infinite;
    animation-delay: 0.5s, 0.3s;
}

.feature-card:nth-child(3) .feature-icon i {
    animation: iconFloat 3.2s ease-in-out infinite, iconPulse 2.2s ease-in-out infinite;
    animation-delay: 1s, 0.6s;
}

.feature-card:nth-child(4) .feature-icon i {
    animation: iconFloat 3.8s ease-in-out infinite, iconPulse 2.8s ease-in-out infinite;
    animation-delay: 1.5s, 0.9s;
}

/* Hover animations for icons */
.feature-card:hover .feature-icon i {
    animation: iconSpin 0.6s ease-in-out, iconFloat 3s ease-in-out infinite;
    transform: scale(1.15);
}

/* Float animation - gentle up and down movement */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Pulse animation - subtle scale breathing effect */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Spin animation on hover - elegant rotation */
@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1.15);
    }
}

.feature-card:hover .feature-icon {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.45);
}

.feature-card:nth-child(2):hover .feature-icon {
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.45);
}

.feature-card:nth-child(3):hover .feature-icon {
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.45);
}

.feature-card:nth-child(4):hover .feature-icon {
    box-shadow: 0 20px 50px rgba(250, 112, 154, 0.45);
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
}

.success-footer {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 10px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    flex-shrink: 0;
}

.success-footer p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.loading-dots {
    display: inline-flex;
    gap: 5px;
    margin-left: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #9c736b;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9c736b 0%, #b08f87 100%);
    width: 0;
    animation: progressBar 2.5s ease-out forwards;
    border-radius: 2px;
}

@keyframes progressBar {
    to {
        width: 100%;
    }
}

/* Button states and animations */
.btn-login {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-login .btn-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.btn-login .btn-slide {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-login.verifying .btn-text {
    opacity: 0;
}

.btn-login.verifying .btn-slide {
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-login.success .btn-slide {
    left: 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-login.success .btn-text {
    opacity: 0;
}

.btn-login.error .btn-slide {
    left: 0;
    background: linear-gradient(135deg, #e57373 0%, #d32f2f 100%);
}

.btn-login.error .btn-text {
    opacity: 0;
}

.btn-slide-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkmark-small {
    width: 20px;
    height: 20px;
    position: relative;
}

.checkmark-small::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    left: 6px;
    top: 2px;
    animation: checkmarkDraw 0.3s ease forwards;
}

@keyframes checkmarkDraw {
    0% {
        height: 0;
    }
    100% {
        height: 12px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SUCCESS ANIMATION
   ======================================== */

@media (max-width: 992px) {
    .login-wrapper {
        max-width: 480px;
    }

    .login-form-section {
        width: 100%;
        padding: 40px 30px;
    }

    .login-image-section {
        display: none;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .success-animation {
        padding: 30px 20px;
    }

    .success-animation::before {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .success-title {
        font-size: 1.4rem;
    }

    .success-stats-grid {
        gap: 12px;
    }

    .success-stat-card {
        padding: 16px 12px;
    }

    .success-stat-value {
        font-size: 1.5rem;
    }

    .success-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .success-feature-card {
        padding: 20px 16px;
    }

    .success-feature-icon-box {
        width: 65px;
        height: 65px;
    }

    .success-feature-icon-box i {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .login-form-section {
        padding: 30px 25px;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }

    .success-animation {
        padding: 20px 15px;
    }

    .success-animation::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .success-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .success-checkmark-circle {
        width: 80px;
        height: 80px;
    }

    .success-checkmark-circle i {
        font-size: 2.8rem;
    }

    .success-profile-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .success-avatar img {
        width: 70px;
        height: 70px;
    }

    .success-avatar-badge {
        width: 28px;
        height: 28px;
    }

    .success-avatar-badge i {
        font-size: 0.85rem;
    }

    .success-welcome-text {
        text-align: center;
    }

    .success-title {
        font-size: 1.3rem;
    }

    .success-subtitle {
        font-size: 0.85rem;
    }

    .success-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .success-stat-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 14px;
    }

    .success-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .success-stat-content {
        text-align: left;
    }

    .success-stat-value {
        font-size: 1.4rem;
    }

    .success-stat-label {
        font-size: 0.7rem;
    }

    .success-features-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .success-features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 5px 10px 5px;
        grid-template-columns: none;
    }

    .success-features-grid::-webkit-scrollbar {
        display: none;
    }

    .success-feature-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: center;
        padding: 24px 20px;
        gap: 14px;
        flex-shrink: 0;
    }

    .success-feature-icon-box {
        width: 70px;
        height: 70px;
    }

    .success-feature-icon-box i {
        font-size: 2rem;
    }

    .success-feature-info h4 {
        font-size: 0.95rem;
    }

    .success-feature-info p {
        font-size: 0.8rem;
    }

    .success-features-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .success-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d0d0d0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .success-carousel-dot.active {
        background: linear-gradient(135deg, #9c736b 0%, #c59889 100%);
        width: 24px;
        border-radius: 4px;
    }

    .success-progress-bar {
        height: 6px;
    }

    .success-progress-text {
        font-size: 0.65rem;
    }

    .success-loading-message {
        font-size: 0.8rem;
    }

    .powered-by-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
    }

    .powered-by-logo-img {
        max-height: 150px;
        max-width: 150px;
        object-fit: contain;
    }
}

