﻿/* Body & background */
body {
    height: 100vh;
    background: linear-gradient(to bottom right, #00534E, #00796B);
    font-family: 'Segoe UI', sans-serif;
}

/* Card styling */
.login-card {
    background-color: #ffffff;
    border-radius: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .login-card.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Header: logo + ESS */
.login-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.login-card.active .login-header {
    opacity: 1;
    transform: translateY(0);
}

/* Logo next to ESS */
.login-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.login-card.active .login-logo {
    transform: rotateY(360deg);
}

/* Logo hover glow */
.login-logo:hover {
    box-shadow: 0 0 15px 3px rgba(0, 83, 78, 0.7);
    transform: scale(1.1) rotateY(360deg);
}

/* Login title with ESS color */
.login-title {
    font-size: 1.2rem;
}

.text-ess {
    color: #00534E;
}

/* Input field animations */
.input-field {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    .input-field:focus {
        outline: none;
        border-color: #00534E;
        box-shadow: 0 0 8px rgba(0, 83, 78, 0.5);
    }

/* Toggle button */
.toggle-btn {
    border-left: 0;
    transition: background 0.3s ease;
}

    .toggle-btn:hover {
        background-color: #00534E;
        color: #fff;
    }

/* Login button */
.login-btn {
    background-color: #00534E;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .login-btn:hover {
        background-color: #00796B;
        color: #fff;
        transform: translateY(-2px);
    }

/* Sequential fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .fade-up.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay helpers for sequential fade-in */
    .fade-up.delay-1 {
        transition-delay: 0.2s;
    }

    .fade-up.delay-2 {
        transition-delay: 0.4s;
    }

    .fade-up.delay-3 {
        transition-delay: 0.6s;
    }

    .fade-up.delay-4 {
        transition-delay: 0.8s;
    }

    .fade-up.delay-5 {
        transition-delay: 0.10s;
    }

/* Card text and small screens */
@media (max-width: 576px) {
    .login-card {
        margin: 1rem;
        padding: 1rem;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-logo {
        width: 30px;
        height: 30px;
    }
}

/* Toggle button */
.toggle-btn {
    border-left: 0;
    background-color: #00534E; /* visible background */
    color: #fff; /* white text */
    transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover {
    background-color: #00796B; /* slightly lighter on hover */
    transform: translateY(-1px);
}

/* Login logo */
.login-logo {
    width: 80px; /* adjust width as needed */
    height: auto; /* keep aspect ratio */
    display: inline-block;
    vertical-align: middle;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 1px;
    width: 100%;
}

.dntCaptcha {
    display: flex !important;
    align-items: center;
    gap: 1px;
    flex: 1;
}

    .dntCaptcha img {
        border-radius: 6px;
    }

    .dntCaptcha input {
        flex: 1;
        min-width: 120px;
    }

.captcha-refresh {
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.input-field {
    border-left: none;
}

    .input-field:focus {
        box-shadow: none;
    }


.custom-focus {
    transition: all 0.2s ease;
}

    /* when input inside group is focused */
    .custom-focus:focus-within .input-group-text,
    .custom-focus:focus-within .form-control {
        border-color: #00534E !important; /* Bootstrap green */
        box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.25);
    }

    /* optional: make icon background match */
    .custom-focus:focus-within .input-group-text {
        background-color: #e9f7ef;
    }

