/* Neumorphism Login Form - Complete & Self-Contained */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e0e5ec;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #e0e5ec;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 
        20px 20px 60px #bec3cf,
        -20px -20px 60px #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.neu-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #e0e5ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        8px 8px 20px #bec3cf,
        -8px -8px 20px #ffffff;
}

.icon-inner {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c7293;
}

.icon-inner svg {
    width: 100%;
    height: 100%;
}

.login-header h2 {
    color: #3d4468;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #9499b7;
    font-size: 15px;
}

/* FORM GROUP */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

/* INPUT + SELECT FIXED */
.neu-input {
    position: relative;
    background: #e0e5ec;
    border-radius: 15px;
    box-shadow: 
        inset 8px 8px 16px #bec3cf,
        inset -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.neu-input:focus-within {
    box-shadow: 
        inset 4px 4px 8px #bec3cf,
        inset -4px -4px 8px #ffffff;
}

/* FIXED: input + select styling */
.neu-input input,
.neu-input select {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    padding-left: 55px;
    color: #3d4468;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

/* REMOVE placeholder text */
.neu-input input::placeholder {
    color: transparent;
}

/* SELECT FIX */
.neu-input select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* LABEL */
.neu-input label {
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    color: #9499b7;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* FIXED LABEL FLOATING LOGIC */
.neu-input input:focus + label,
.neu-input input:not(:placeholder-shown) + label,
.neu-input select:focus + label,
.neu-input select:valid + label {
    top: 8px;
    font-size: 12px;
    color: #6c7293;
    transform: translateY(0);
}

/* ICON (if used later) */
.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9499b7;
}

/* BUTTON */
.neu-button {
    width: 100%;
    background: #e0e5ec;
    border: none;
    border-radius: 15px;
    padding: 18px 32px;
    color: #3d4468;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    box-shadow: 
        8px 8px 20px #bec3cf,
        -8px -8px 20px #ffffff;
    transition: all 0.3s ease;
}

.neu-button:hover {
    transform: translateY(-2px);
}

/* ERROR */
.error-message {
    color: #ff3b5c;
    font-size: 12px;
}

/* SUCCESS */
.success-message {
    display: none;
}

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

    .login-card {
        padding: 35px 25px;
    }

    .neu-input input,
    .neu-input select {
        padding: 18px 20px;
        padding-left: 50px;
    }

    .neu-input label {
        left: 50px;
  
  
  /* ===== TOAST ALERT ===== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;

    background: #e0e5ec;
    color: #3d4468;

    padding: 14px 20px;
    border-radius: 12px;

    box-shadow:
        8px 8px 20px #bec3cf,
        -8px -8px 20px #ffffff;

    font-size: 14px;
    font-weight: 500;

    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;

    z-index: 9999;
}

/* SHOW STATE */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* SUCCESS STYLE (optional) */
.toast.success {
    border-left: 4px solid #00c896;
}

/* ERROR STYLE (optional) */
.toast.error {
    border-left: 4px solid #ff3b5c;
}  }
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast box */
.toast {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #e0e5ec;
    box-shadow: 8px 8px 20px #bec3cf,
                -8px -8px 20px #ffffff;

    transform: translateX(120%);
    opacity: 0;
    animation: slideIn 0.4s forwards;
}

/* Animation */
@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auto hide */
.toast.hide {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Colors */
.toast.success {
    border-left: 4px solid #024333;
    background-color: rgb(117, 227, 117);
}

.toast.error {
    border-left: 4px solid #ae0e29;
    background-color: rgb(233, 127, 127);

}