/* ======================
   Login Container
====================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
    box-sizing: border-box;
}

/* ======================
   Card Styling
====================== */
.login-card {
    position: relative;
    background-color: #fff;
    padding: 80px 30px 30px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* ======================
   Logo Lazy-load & Fade-in
====================== */
.logo-container {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.logo-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.logo-container img.show {
    opacity: 1;
    transform: translateY(0);
}

/* ======================
   Title
====================== */
.title {
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* ======================
   Input Groups (Floating Labels)
====================== */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-group input,
.input-group InputText {
    width: 100%;
    padding: 16px 12px 16px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group InputText:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

/* Floating labels */
.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    background-color: #fff;
    padding: 0 4px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group InputText:focus + label,
.input-group InputText:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #6c63ff;
}

/* Toggle password button */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    color: #6c63ff;
    font-weight: 600;
}

/* ======================
   Submit Button
====================== */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    background-color: #6c63ff;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: #554fd6;
    transform: translateY(-2px);
}

/* ======================
   Footer Links
====================== */
.footer {
    margin-top: 20px;
}

.footer a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* ======================
   Error Message
====================== */
.text-danger {
    color: #ff4d4f;
    font-size: 14px;
}

/* ======================
   Responsive Design
====================== */
@media (max-width: 480px) {
    .login-card {
        padding: 100px 20px 20px 20px;
    }

    .title {
        font-size: 22px;
        margin-top: 70px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
        top: -40px;
    }

    .input-group input,
    .input-group InputText {
        font-size: 14px;
        padding: 14px 12px 14px 12px;
    }

    .btn-login {
        font-size: 14px;
        padding: 12px;
    }
}
