/* Sign-in Custom Styles - Green Theme with Glassmorphism */

/* Green Color Palette */
:root {
    --primary-green: #10b981;
    --secondary-green: #34d399;
    --dark-green: #047857;
    --light-green: #d1fae5;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
}

/* Background with Video */
.signin-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #34d399 0%, #10b981 25%, #059669 50%, #047857 75%, #065f46 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video Overlay untuk efek gelap/hijau dan readability */
.bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(5, 150, 105, 0.7) 0%,
        rgba(4, 120, 87, 0.6) 50%,
        rgba(6, 95, 70, 0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Animated Gradient Background Layer (Optional - bisa di-disable jika video sudah cukup) */
.bg-animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(52, 211, 153, 0.3) 0%,
        rgba(16, 185, 129, 0.2) 25%,
        rgba(5, 150, 105, 0.25) 50%,
        rgba(4, 120, 87, 0.3) 75%,
        rgba(6, 95, 70, 0.35) 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: 2;
    opacity: 0.5; /* Reduced opacity karena video sudah ada */
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles (Optional - bisa di-disable jika video sudah cukup) */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    opacity: 0.3; /* Reduced opacity karena video sudah ada */
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 22s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 19s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 21s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 16s; }
.particle:nth-child(10) { left: 15%; animation-delay: 6s; animation-duration: 18s; }
.particle:nth-child(11) { left: 25%; animation-delay: 3.5s; animation-duration: 20s; }
.particle:nth-child(12) { left: 35%; animation-delay: 5.5s; animation-duration: 17s; }
.particle:nth-child(13) { left: 45%; animation-delay: 2.2s; animation-duration: 19s; }
.particle:nth-child(14) { left: 55%; animation-delay: 4.2s; animation-duration: 21s; }
.particle:nth-child(15) { left: 65%; animation-delay: 1.2s; animation-duration: 16s; }
.particle:nth-child(16) { left: 75%; animation-delay: 3.2s; animation-duration: 18s; }
.particle:nth-child(17) { left: 85%; animation-delay: 5.2s; animation-duration: 20s; }
.particle:nth-child(18) { left: 95%; animation-delay: 2.8s; animation-duration: 17s; }
.particle:nth-child(19) { left: 5%; animation-delay: 4.8s; animation-duration: 19s; }
.particle:nth-child(20) { left: 12%; animation-delay: 6.5s; animation-duration: 22s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(50vh) translateX(20px) scale(1);
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) translateX(-20px) scale(0);
        opacity: 0;
    }
}

/* Animated Plants Background (Optional - bisa di-disable jika video sudah cukup) */
.plants-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    opacity: 0.2; /* Reduced opacity karena video sudah ada */
}

.plants-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.plant {
    position: absolute;
    opacity: 0.4;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: opacity 0.3s ease;
}

/* Plant Animations - Slow Movement */
@keyframes float-plant-1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-plant-2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(-2deg);
    }
}

@keyframes float-plant-3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(1.5deg);
    }
}

@keyframes float-plant-4 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-35px) rotate(-1.5deg);
    }
}

.plant-1 {
    bottom: 10%;
    left: 5%;
    animation: float-plant-1 8s ease-in-out infinite;
}

.plant-2 {
    bottom: 15%;
    right: 8%;
    animation: float-plant-2 10s ease-in-out infinite;
}

.plant-3 {
    top: 20%;
    left: 10%;
    animation: float-plant-3 12s ease-in-out infinite;
}

.plant-4 {
    top: 15%;
    right: 5%;
    animation: float-plant-4 9s ease-in-out infinite;
}

.plant-5 {
    bottom: 25%;
    left: 50%;
    animation: float-plant-1 11s ease-in-out infinite;
}

.plant-6 {
    top: 30%;
    right: 25%;
    animation: float-plant-2 13s ease-in-out infinite;
}

.plant-7 {
    bottom: 30%;
    left: 20%;
    animation: float-plant-3 11s ease-in-out infinite;
    opacity: 0.25;
    transform: scale(0.8);
}

.plant-8 {
    top: 40%;
    right: 15%;
    animation: float-plant-1 14s ease-in-out infinite;
    opacity: 0.3;
    transform: scale(0.9);
}

.plant-9 {
    bottom: 40%;
    left: 15%;
    animation: float-plant-4 12s ease-in-out infinite;
    opacity: 0.2;
    transform: scale(0.7);
}

.plant-10 {
    top: 50%;
    right: 30%;
    animation: float-plant-2 15s ease-in-out infinite;
    opacity: 0.25;
    transform: scale(0.85);
}

/* Main Content Wrapper - Centered */
.main-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Glassmorphism Form Container */
.glass-form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 0;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2.5rem;
    color: white;
}

.glass-card .card-header {
    background: transparent;
    border: none;
    padding-bottom: 1.5rem;
}

.glass-card .card-header h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.glass-card .card-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.glass-card .card-header p b {
    color: var(--light-green);
    font-weight: 600;
}

/* Form Inputs Styling */
.glass-card .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.glass-card .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--light-green);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(209, 250, 229, 0.25);
}

.glass-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-card label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Checkbox Styling */
.glass-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.glass-card .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Links Styling */
.glass-card a {
    color: var(--light-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.glass-card a:hover {
    color: white;
    text-decoration: underline;
}

/* Buttons Styling */
.glass-card .btn-dark {
    background: var(--primary-green);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glass-card .btn-dark:hover {
    background: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.glass-card .btn-white {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glass-card .btn-white:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Alert Messages */
.glass-card .alert {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 10px;
}

.glass-card .text-green-600 {
    color: var(--light-green) !important;
}

/* Philosophy Text Container */
.philosophy-container {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Typing Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: white;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-form-container {
        max-width: 90%;
        padding: 1rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    .philosophy-container {
        padding: 0 1rem;
        height: 100px;
    }

    .philosophy-text {
        font-size: 1rem;
        min-height: 100px;
    }

    .plant {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem 1rem;
    }

    .philosophy-container {
        height: 90px;
    }

    .philosophy-text {
        font-size: 0.9rem;
        min-height: 90px;
    }
}


