﻿* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #f2f2f2;
}

.container {
    display: flex;
    height: 85vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    margin: 40px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-box {
    width: 40%;
    height: 100%;
    padding: 40px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 155px;
    background: linear-gradient(#fff182, #f2f2f2);
    text-align: center;
    animation: slideInLeft 0.7s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-box h2 {
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box p {
    color: #777;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.login-box img {
    width: 60%;
    margin-top: -120px;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.login-box input {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 28px;
    border: 1px solid #ddd;
    animation: fadeInUp 0.8s ease-out backwards;
}

    .login-box input:nth-of-type(1) {
        animation-delay: 0.4s;
    }

    .login-box input:nth-of-type(2) {
        animation-delay: 0.5s;
    }

.login-box a {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 28px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #ffd54f;
    border: none;
    border-radius: 28px;
    font-weight: bold;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    transition: all 0.3s ease;
}

    .login-box button:hover {
        background: #ffca28;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 202, 40, 0.4);
    }

.image-box {
    width: 60%;
}

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff5252;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-weight: bold;
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .image-box {
        width: 100%;
        height: 220px;
        order: 1;
    }

    .login-box {
        width: 100%;
        padding-top: 40px;
        order: 2;
    }

    .image-box img {
        object-fit: cover;
    }
}

.login-box input:focus {
    outline: none;
    border-color: #ffca28;
    box-shadow: 0 0 0 3px rgba(255,202,40,0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.btn-main {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 28px;
    font-weight: bold;
    text-align: center;
    background: #ffd54f;
    border: none;
    color: black;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
    transition: all 0.3s ease;
}

    .btn-main:hover {
        background: #ffca28;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 202, 40, 0.4);
    }

.btn-cancel {
    margin-top: 10px;
}
