/*
 * @Author: Dicky Ermawan S 
 * @Profile: https://www.linkedin.com/in/dickyermawan/ 
 * @Date: 2026-01-10 02:28:00 
 * @Last Modified by: Dicky Ermawan S
 * @Last Modified time: 2026-01-10 02:28:00
 * @Description: Custom CSS for Login Page with Occupational Medicine Theme
 */

/* ============================================
   ANIMATED BACKGROUND WITH IMAGE
   ============================================ */
.login-page-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated overlay for depth and visual interest */
.login-page-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(14, 165, 233, 0.08),
            rgba(16, 185, 129, 0.08),
            rgba(14, 165, 233, 0.08));
    background-size: 400% 400%;
    animation: overlayShift 20s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes overlayShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   FLOATING MEDICAL ICONS BACKGROUND
   ============================================ */
.medical-icons-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.medical-icon {
    position: absolute;
    opacity: 0.1;
    animation: floatIcon 20s ease-in-out infinite;
}

.medical-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    font-size: 3rem;
    animation-delay: 0s;
    animation-duration: 18s;
}

.medical-icon:nth-child(2) {
    top: 60%;
    left: 80%;
    font-size: 2.5rem;
    animation-delay: 2s;
    animation-duration: 22s;
}

.medical-icon:nth-child(3) {
    top: 80%;
    left: 20%;
    font-size: 2rem;
    animation-delay: 4s;
    animation-duration: 20s;
}

.medical-icon:nth-child(4) {
    top: 30%;
    left: 70%;
    font-size: 2.8rem;
    animation-delay: 1s;
    animation-duration: 19s;
}

.medical-icon:nth-child(5) {
    top: 50%;
    left: 5%;
    font-size: 2.2rem;
    animation-delay: 3s;
    animation-duration: 21s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    50% {
        transform: translateY(-60px) rotate(-5deg);
    }

    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 25s linear infinite;
}

.particle:nth-child(odd) {
    animation-duration: 30s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ============================================
   LOGO SECTION ANIMATIONS
   ============================================ */
.logo-section {
    animation: fadeInLeft 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.logo-section img {
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-section h2 {
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   GLASSMORPHISM LOGIN CARD
   ============================================ */
.login-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(14, 165, 233, 0.1) inset !important;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   FORM ELEMENTS ANIMATIONS
   ============================================ */
.login-form-wrapper {
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    animation: fadeInUp 1s ease-out 0.3s both;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-separator {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ============================================
   INPUT FIELD ANIMATIONS
   ============================================ */
.login-input-wrapper {
    position: relative;
}

.login-input-wrapper:nth-child(1) {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.login-input-wrapper:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.login-input-wrapper input {
    transition: all 0.3s ease;
    border: 2px solid rgba(14, 165, 233, 0.2) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

.login-input-wrapper input:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1),
        0 0 20px rgba(14, 165, 233, 0.2) !important;
    background: #ffffff !important;
    transform: translateY(-2px);
}

.login-input-wrapper input::placeholder {
    color: rgba(107, 114, 128, 0.6);
    transition: all 0.3s ease;
}

.login-input-wrapper input:focus::placeholder {
    transform: translateX(5px);
    opacity: 0.8;
}

/* ============================================
   FORGOT PASSWORD LINK
   ============================================ */
.forgot-password-wrapper {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.forgot-password-link {
    position: relative;
    transition: all 0.3s ease;
}

.forgot-password-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.3s ease;
}

.forgot-password-link:hover::after {
    width: 100%;
}

/* ============================================
   SUBMIT BUTTON ANIMATIONS
   ============================================ */
.login-submit-wrapper {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.login-submit-btn {
    background: linear-gradient(135deg, #0ea5e9, #0891b2) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.login-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.6);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Pulse animation for submit button */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(14, 165, 233, 0.7);
    }
}

.login-submit-btn {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.login-footer {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.login-footer a {
    transition: all 0.3s ease;
    position: relative;
}

.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.login-footer a:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .logo-section {
        padding: 2rem !important;
    }

    .logo-section img {
        width: 12rem !important;
    }

    .medical-icon {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .login-page-wrapper {
        background-size: 600% 600%;
    }

    .logo-section h2 {
        font-size: 1.5rem !important;
    }

    .medical-icon {
        font-size: 1.5rem !important;
    }

    .login-card {
        margin: 1rem !important;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.login-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}