.app     {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    font-family: 'Kanit';
}
.main {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-family: 'Kanit';
}

.login-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-impares);
    padding: 32px;
    border-radius: var(--radius-lg);
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.center-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.center-logo img {
    width: 60%;
}

/* The wordmark's letters are white — swap to a dark-lettered copy in light mode. */
.center-logo .logo--light {
    display: none;
}

:root[data-theme="light"] .center-logo .logo--dark {
    display: none;
}

:root[data-theme="light"] .center-logo .logo--light {
    display: block;
}

.center-login {
    width: 400px;
    height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
  
.login-field label {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    line-height: 18px;
    font-style: normal;
}
  
.login-field input {
    height: 52px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    padding: 0 12px;
    color: var(--text-placeholder);
    font-size: var(--text-lg);
    font-family: 'Kanit';
    font-weight: var(--font-regular);
    appearance: none !important;
    -webkit-appearance: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 42px;
}

.password-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-actions{
    display: flex;
    width: -webkit-fill-available;
    width: -moz-available;
    width: stretch;
    justify-content: space-between;
}

.login-btn{
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--DAIS-blue-1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 1s ease;
    cursor: pointer;
}

.login-btn img {
    filter: var(--icon-filter3);
}

.login-btn:hover{
    background:linear-gradient(180deg, var(--DAIS-blue-1) 5%, var(--DAIS-lilac) 30%);
    transition: all 1s ease;
}

.forgot-password-btn{
    color: var(--text-secondary);
    font-size: var(--text-md);
    font-style: normal;
    font-weight: var(--font-regular);
    line-height: var(--lh-md);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    cursor: pointer;
}

/* ERROR STATE */

.login-field.error input {
    border: 1px solid var(--basics-notification);
}

.login-field.error .password-wrapper input {
    border: 1px solid var(--basics-notification);
}

.input-error {
    color: var(--basics-notification);
    font-size: 12px;
    line-height: 12px;
    padding-left: 4px;
    display: none;
}

.login-field.error .input-error {
    display: block;
}

.login-global-error {
    width: 100%;
    color: var(--basics-notification);
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    display: none;
}

.login-global-error.show {
    display: flex;
    justify-content: center;
}
