body {
    font-family: 'Inter', 'IBM Plex Sans Thai', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Canvas Background for Subtle Particles */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

/* บังคับขอบเหลี่ยม 90 องศา - Signature Requirement */
* {
    border-radius: 0 !important;
}

.login-box {
    width: 440px;
    z-index: 10;
    position: relative;
}

.card-auth {
    background: #ffffff;
    border-top: 4px solid #548e0a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.input-group-custom {
    display: flex;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-custom:focus-within {
    border-color: #548e0a;
    box-shadow: 0 0 0 4px rgba(84, 142, 10, 0.08);
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
    color: #334155;
    background: transparent;
}

.input-icon {
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #f8fafc;
    color: #94a3b8;
    border-right: 1px solid #e2e8f0;
}

.btn-minimal {
    background: #1e293b;
    color: white;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 12px;
}

.btn-minimal:hover:not(:disabled) {
    background: #548e0a;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(84, 142, 10, 0.3);
}

/* Toast UI - Sharp & Clean */
.toast-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    padding: 16px 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(125%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toast-box.show {
    transform: translateX(0);
}

/* Spinner Small */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Entry Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}
