* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #FFFFFF;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background-image: url('../../image/image-login.jpg');
    background-size: cover;
    background-position: center;
    background-color: #FFFFFF;
    z-index: 0;
    animation: slideFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

body::before {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
    animation: slideFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

@keyframes slideFromLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #FFFFFF;
    position: relative;
    z-index: 2;
    animation: slideFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}

h1 {
    font-size: 32px;
    margin: 0 0 8px 0;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}

.content img {
    display: none;
}

#login-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

#login-form p {
    text-align: center;
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.input-container {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    background: #FFFFFF;
    color: #000000;
    transition: all 0.3s ease;
}

.input-container input:focus {
    border-color: #12C9FF;
    box-shadow: 0 0 0 3px rgba(18, 201, 255, 0.1);
}

.input-container input:not(:placeholder-shown) {
    border-color: #D1D5DB;
}

.input-container input::placeholder {
    color: transparent;
}

.input-container label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 15px;
    color: #9CA3AF;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 4px;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #12C9FF;
    font-weight: 600;
}

.password-container {
    position: relative;
}

.toggle-password,
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 18px;
    transition: color 0.2s ease;
    padding: 4px;
    z-index: 10;
    width: 24px;
    height: 24px;
}

.toggle-password svg,
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toggle-password:hover,
.password-toggle:hover {
    color: #12C9FF;
}

.bottom,
.btn-login {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    background: #12C9FF;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin: 28px 0 16px;
    box-shadow: 0 8px 25px rgba(18, 201, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bottom:hover,
.btn-login:hover {
    background: #0FB5E8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(18, 201, 255, 0.55);
}

.bottom:active,
.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(18, 201, 255, 0.4);
}

.links,
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 14px;
    color: #6B7280;
    width: 100%;
}

.forgot {
    margin-bottom: 4px;
}

.link {
    color: #12C9FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: #0FB5E8;
    text-decoration: underline;
}

#create-account,
.btn-create {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: #12C9FF;
    border: 2px solid #12C9FF;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#create-account:hover,
.btn-create:hover {
    background: #12C9FF;
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(18, 201, 255, 0.45);
}

#create-account:active,
.btn-create:active {
    transform: translateY(-1px);
}

@media (max-width: 968px) {
    body {
        grid-template-columns: 1fr;
    }

    body::after,
    body::before {
        display: none;
    }

    .content {
        max-width: 500px;
        padding: 50px 40px;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 40px 30px;
    }

    h1 {
        font-size: 28px;
    }

    #login-form p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .btn-login,
    .btn-create {
        padding: 13px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 30px 24px;
    }

    h1 {
        font-size: 24px;
    }

    #login-form p {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .input-container input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .input-container label {
        font-size: 14px;
        left: 14px;
        top: 12px;
    }

    .input-container input:focus + label,
    .input-container input:not(:placeholder-shown) + label {
        font-size: 11px;
    }

    .btn-login,
    .btn-create {
        padding: 12px 20px;
        font-size: 14px;
    }

    .links {
        font-size: 13px;
    }
}

#toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    padding: 14px 22px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-out, fadeOut 0.4s ease-in 4s forwards;
    z-index: 9999;
}

#toast.success {
    background: #10B981;
}

#toast.error {
    background: #EF4444;
}

#toast.warning {
    background: #F59E0B;
}

#toast.info {
    background: #3B82F6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
