﻿body,
html {
    height: 100%;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    margin: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255 255 255 / 0.35);
    max-width: 400px;
    width: 100%;
    padding: 2.5rem 2rem 3rem 2rem;
    color: #1e2e55;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
    transition: box-shadow 0.3s ease;
}

    .login-container:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    }

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.form-control {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 1rem);
    color: #222;
    padding-left: 3rem;
    font-size: 1rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border-radius: 0.75rem;
    font-weight: 550;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        background: transparent;
        color: #222;
        font-weight: 400;
        border-color: #36d1dc;
        box-shadow: 0 0 0 0.25rem rgba(54, 209, 220, 0.35), 0 0 12px rgba(255, 106, 136, 0.25);
    }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #f43f5e;
    font-size: 1.3rem;
    pointer-events: none;
    filter: drop-shadow(0 0 1px rgba(244, 63, 94, 0.7));
}

.form-label-custom {
    position: absolute;
    top: 50%;
    left: 3rem;
    font-family: "times new roman", serif;
    font-size: 1rem;
    font-weight: 800;
    transform: translateY(-50%);
    color: rgba(30, 46, 85, 0.65);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

.form-control:focus + .form-label-custom,
.form-control:not(:placeholder-shown) + .form-label-custom {
    top: 0;
    left: 1.5rem;
    transform: translateY(-50%) scale(0.9);
    color: black;
    background: rgba(252, 211, 231, 0.85);
    border-radius: 2rem;
    padding: 0 0.4rem;
    font-weight: 200;
    z-index: 2;
}

.forgot-btn {
    background: none;
    border: none;
    color: #36d1dc;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 15px;
    margin-top: 0.5rem;
    text-align: right;
    display: block;
    transition: color 0.3s ease;
}

    .forgot-btn:hover {
        color: ff6a88;
        text-decoration: underline;
    }

.btn-login {
    background: linear-gradient(135deg, #36d1dc, #ff6a88);
    font-weight: 900;
    border-radius: 0.75rem;
    font-family: "times new roman", serif;
    padding: 0.85rem 0;
    border: none;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 15px rgba(255, 126, 179, 0.5);
}

    .btn-login:hover,
    .btn-login:focus {
        background: linear-gradient(135deg, #2bc0e4, #ff477e);
        box-shadow: 0 8px 20px rgba(255, 95, 162, 0.6);
    }

.illustration {
    max-width: 400px;
    margin-right: 3rem;
    position: relative;
    left: 12.5rem;
/*    box-shadow: 0 10px 30px rgba(42, 100, 247, 0.35);*/
    border-radius: 1rem;
    overflow: hidden;
    z-index: 5;
    transition: box-shadow 0.3s ease;
}

/*    .illustration:hover {
        box-shadow: 0 14px 40px rgba(42, 100, 247, 0.55);
    }*/

    .illustration img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 1rem;
    }

.login-logo {
    width: 6.5rem;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.6);
    border: 3px solid #e63b58;
    background: white;
    padding: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .login-logo:hover {
        transform: scale(1.1) rotate(-4deg);
        box-shadow: 0 14px 35px rgba(244, 63, 94, 0.8);
    }

.page-heading {
    color: #1e2e55;
    font-size: 1.3rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    margin-bottom: 1rem;
    user-select: none;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(244, 63, 94, 0.4);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #f43f5e;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #d63357;
    }


@media (max-width: 991.98px) {
    .illustration {
        margin-right: 2rem;
        left: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .d-md-flex {
        flex-direction: column !important;
    }

    .login-container {
        max-width: 100%;
        margin-top: 1rem;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .illustration {
        display: none !important;
    }

    .page-heading {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}
