* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top, #1b263b, #0d1b2a, #0a1623);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e5e5e5;
}

.auth-container {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn .6s ease-out forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    background: rgba(20, 30, 48, 0.9);
    backdrop-filter: blur(10px);
    width: 380px;
    padding: 35px 40px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.auth-container h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 25px;
    color: #ffffff;
}

.auth-container input {
    width: 100%;
    padding: 13px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 15px;
    background: #0d1b2a;
    border: 1px solid #1f2d3e;
    color: #e5e5e5;
    outline: none;
    transition: .25s;
}

.auth-container input:focus {
    border-color: #4c8dff;
    box-shadow: 0 0 8px #4c8dff55;
}

.auth-container button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #1f6feb, #3a7bff);
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
    transition: .25s;
    box-shadow: 0 0 10px rgba(30, 100, 230, 0.4);
}

.auth-container button:hover {
    background: linear-gradient(90deg, #3a7bff, #1f6feb);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(30, 100, 230, 0.55);
}

.auth-bottom-text {
    text-align: center;
    margin-top: 15px;
    color: #cfd9e6;
}

.auth-bottom-text a {
    color: #4c8dff;
}

.error-box {
    background: rgba(255, 70, 70, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 70, 70, 0.4);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-box {
    background: rgba(70, 255, 140, 0.15);
    color: #41ff87;
    border: 1px solid rgba(70, 255, 140, 0.4);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(30, 40, 55, 0.85);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #3a7bff;
    animation: toastIn .5s ease forwards;
    font-size: 15px;
    max-width: 300px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast.hide {
    animation: toastOut .5s ease forwards;
}

.toast::after {
    content: "✕";
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.toast:hover::after {
    opacity: 1;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}