/* public/assets/css/public/login.css */
:root {
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body), sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--angsana-bg-canvas);
    color: var(--angsana-text-dark);
    overflow: hidden;
    position: relative;
}

.login-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed old dark overlay and static background */
body::after,
body::before {
    display: none;
}

.login-box {
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0;
    border-radius: 200px 200px 16px 16px;
    overflow: hidden;
    background-color: var(--angsana-tosca);
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/Shadow-Horizontal-2.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.login-header {
    position: relative;
    z-index: 1;
    background-color: transparent;
    padding: 50px 20px 20px;
    border-radius: 0;
}

.brand-logo {
    width: 150px;
    /* Adjusted for full logo.png */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.login-body {
    position: relative;
    z-index: 1;
    padding: 25px 40px 40px 40px;
}

h3 {
    font-family: var(--font-heading);
    color: var(--angsana-surface-white);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--angsana-beige);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--angsana-surface-white);
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--angsana-beige);
    box-shadow: 0 0 0 4px rgba(246, 224, 193, 0.2);
}

.login-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
}

.error-msg {
    background: rgba(220, 38, 38, 0.2);
    color: #ffa1a1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 25px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer {
    margin-top: 35px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}