﻿
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bounce-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.login-wrapper {
    display: contents;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-logo img {
    height: 195px;
    width: auto;
    margin: 0px -35px;
    transition: transform 0.3s ease;
}

    .login-logo img:hover {
        transform: scale(1.05);
    }


@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.8s ease-out;
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.25rem;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.input-icon-wrapper input.form-control:focus ~ .input-icon {
    transform: translateY(-50%) scale(1.2);
    color: #4C2C69;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.25rem;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.input-icon-wrapper input.form-control:focus ~ .input-icon {
    transform: translateY(-50%) scale(1.2);
    color: #4C2C69;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-8px);
    }

    40%, 80% {
        transform: translateX(8px);
    }
}


input.input-validation-error {
    border-color: #dc3545;
    animation: shakeError 0.4s ease;
}

.login-title {
    animation: fadeInSlideUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.login-container form {
    animation: fadeInSlideUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.login-container {
    animation: fadeInSlideUp 0.7s ease-out;
}

body {
    background: linear-gradient(135deg, #6b42c1, #4C2C69);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(76, 44, 105, 0.25);
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    text-align: left;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #4C2C69;
    margin-bottom: 40px;
    text-align: center;
}

/* Icon + input wrapper */
.input-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
}

    .input-icon-wrapper .form-floating > .form-control {
        padding-left: 2.75rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        border: 1.5px solid #ddd;
        border-radius: 10px;
        height: auto;
    }

    .input-icon-wrapper .form-floating > label {
        left: 2.75rem;
        transition: all 0.2s ease;
        color: #777;
    }

    .input-icon-wrapper .form-control:focus {
        border-color: #4C2C69;
        box-shadow: 0 0 8px rgba(76, 44, 105, 0.4);
    }

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-icon-wrapper .form-control:focus + label + .input-icon {
    color: #4C2C69;
}

.form-check-label {
    color: #4C2C69;
    font-weight: 600;
}

.btn-custom {
    background-color: #4C2C69;
    border: none;
    border-radius: 12px;
    padding: 15px 0;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

    .btn-custom:hover,
    .btn-custom:focus {
        background-color: #3e2456;
        outline: none;
    }

.form-check {
    margin-bottom: 35px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 3;
}

    .toggle-password:hover {
        color: #4C2C69;
        transform: translateY(-50%) scale(1.15);
    }


@media (max-width: 576px) {
    .login-wrapper {
        display: inline-flex;
        padding: 20px 10px;
        flex-direction: column;
    }

    .login-logo {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

        .login-logo img {
            height: auto;
            max-height: 80px;
            max-width: 45%;
            margin: 5px;
        }

    .login-container {
        padding: 30px 20px;
        margin-top: 0;
        width: 100%;
        max-width: 400px;
    }
}