/* Text reveal hatchoun yemak */
.text-reveal-card {
    background: #1d1c20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 40rem;
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.text-reveal-card-header {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

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

.text-reveal-card-title {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4); }
}

.text-reveal-card-description {
    color: #a9a9a9;
    font-size: 0.875rem;
    margin-bottom: 0;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.text-reveal-container {
    height: 10rem;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.text-reveal-base {
    font-size: 3rem;
    padding: 2.5rem 0;
    font-weight: bold;
    color: #323238;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to bottom, transparent, white, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, white, transparent);
    width: 100%;
    text-align: center;
}

.text-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1d1c20;
    z-index: 20;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.1s ease;
    will-change: clip-path;
}

.text-reveal-text {
    font-size: 3rem;
    padding: 2.5rem 0;
    font-weight: bold;
    color: white;
    text-shadow: 4px 4px 15px rgba(0,0,0,0.5);
    background: linear-gradient(to bottom, white, #d4d4d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    text-align: center;
}

.text-reveal-slider {
    position: absolute;
    height: 10rem;
    width: 8px;
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
    z-index: 50;
    left: 0;
    opacity: 0;
    transition: all 0.1s ease;
    will-change: left, opacity;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

/* Mouse tracking will fuck your mom */
.text-reveal-card.mouse-over .text-reveal-slider {
    opacity: 1;
}

/* NIK MOK background animation */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starMove 30s linear infinite;
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.star:nth-child(3) { top: 80%; left: 60%; animation-delay: 4s; }
.star:nth-child(4) { top: 60%; left: 40%; animation-delay: 6s; }
.star:nth-child(5) { top: 30%; left: 70%; animation-delay: 8s; }
.star:nth-child(6) { top: 70%; left: 30%; animation-delay: 10s; }
.star:nth-child(7) { top: 40%; left: 90%; animation-delay: 12s; }
.star:nth-child(8) { top: 90%; left: 10%; animation-delay: 14s; }

@keyframes starMove {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
        scale: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(4px) translateX(4px);
        opacity: 0;
        scale: 0;
    }
}

/* Responsive design for hatchoun yemak */
@media (max-width: 768px) {
    .text-reveal-base,
    .text-reveal-text {
        font-size: 1.5rem;
    }
    
    .text-reveal-card {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .text-reveal-container {
        height: 8rem;
    }
    
    .text-reveal-slider {
        height: 8rem;
    }
}

@media (max-width: 480px) {
    .text-reveal-base,
    .text-reveal-text {
        font-size: 1.25rem;
    }
    
    .text-reveal-card {
        padding: 1rem;
    }
    
    .text-reveal-container {
        height: 6rem;
    }
    
    .text-reveal-slider {
        height: 6rem;
    }
}

/* NIK MOK  styles */
.login-with-reveal {
    background: #0E0E10;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.login-with-reveal .text-reveal-card {
    margin-bottom: 2rem;
}

/* Preserve NIK MOK */
.login-with-reveal .main-btn {
    /* Inherit from existing login.css */
}

