/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* ===== AUTH WRAPPER ===== */
.AuthWrapper {
    width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ===== SWITCH ===== */
.AuthSwitch {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.AuthSwitch button {
    flex: 1;
    height: 48px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.AuthSwitch button.active {
    color: #ffa500;
    border-bottom: 3px solid #ffa500;
    background: #fff;
}

/* ===== SLIDER ===== */
.AuthViewport {
    width: 100%;
    overflow: hidden;
}

.AuthTrack {
    display: flex;
    width: 200%;
    transition: transform 0.5s ease;
}

.AuthForm {
    flex: 0 0 50%;
    padding: 28px 30px 32px;
}

/* ===== FORM STYLE ===== */
.AuthForm h2 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.AuthForm input {
    width: 100%;
    height: 46px;
    margin-bottom: 14px;
    padding: 0 14px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ccc;
    color: #333;
    outline: none;
}

.AuthForm input:focus {
    border-color: #ffa500;
    background: #fff;
}

.AuthForm input::placeholder {
    color: #999;
}

.AuthForm button {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: none;
    border-radius: 8px;
    background: #ffa500;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.AuthForm button:hover {
    background: #444;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 260px;
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideIn 0.35s ease forwards;
}

.toast.success { border-left: 4px solid #4caf50; }
.toast.error   { border-left: 4px solid #e53935; }
.toast.warning { border-left: 4px solid #ff9800; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .AuthWrapper {
        width: 100%;
        max-width: 380px;
    }

    .AuthForm {
        padding: 20px;
    }

    .AuthForm h2 {
        font-size: 22px;
    }

    .AuthForm input,
    .AuthForm button {
        height: 44px;
        font-size: 14px;
    }

    .AuthSwitch button {
        height: 44px;
        font-size: 14px;
    }

    .toast {
        width: calc(100vw - 40px);
    }
}
