/* ── Reset and Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    width: 100%;
}

/* ── Typography ── */
body,
.dx-widget,
.dx-theme-generic-typography,
.dx-theme-generic-typography input,
.dx-theme-generic-typography textarea,
.dx-field,
.dx-field input,
.dx-field textarea {
    font-family: 'Noto Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
#login-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #f5fafd 0%, #eef5f9 100%);
    padding: 20px;
}

/* ── Card ── */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 71, 145, 0.08), 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header Section ── */
.header-section {
    padding: 40px 40px 20px;
    text-align: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: #1872e4;
    border-radius: 12px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 114, 228, 0.3);
}

.logo-icon img {
    width: 38px;
    height: auto;
}

.main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: 14px;
    color: #858585;
    font-weight: 500;
}

/* ── Form Body ── */
.login-form-new {
    padding: 0 40px 30px;
}

.dx-field-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
    display: block;
}

/* DevExtreme Component Customization */
.dx-textbox.dx-editor-filled {
    background-color: #f3f5f7;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dx-textbox.dx-editor-filled.dx-state-focused {
    background-color: #ffffff;
    border-color: #1872e4;
    box-shadow: 0 0 0 4px rgba(24, 114, 228, 0.1);
}
.dx-textbox .dx-texteditor-buttons-container {
    position: absolute;
    align-self: center;
    z-index: 3;
}
.dx-textbox .dx-texteditor-buttons-container + .dx-texteditor-input-container .dx-texteditor-input,.dx-textbox .dx-texteditor-buttons-container + .dx-texteditor-input-container .dx-placeholder {
    padding-left: 38px;
}
.dx-textbox .dx-texteditor-buttons-container + .dx-texteditor-input-container .dx-placeholder::before {
    padding: 0;
}
.dx-texteditor-buttons-container:last-child {
    right: 0;
}
.dx-texteditor-input-container:has( + .dx-texteditor-buttons-container)::after {
    margin-right: 34px;
}

#UserPassword input::-ms-reveal,
#UserPassword input::-ms-clear {
    display: none;
}

.dx-textbox .dx-texteditor-input {
    padding: 12px 10px;
    font-size: 15px;
    color: #1a1a1a;
}

.dx-textbox .dx-placeholder {
    font-size: 14px;
    color: #a0a0a0;
}

/* Icons in Input */
.dx-textbox .dx-button-content {
    opacity: 0.6;
}

.dx-textbox .dx-button.dx-state-disabled {
    opacity: 1;
}

/* Options (Remember me & Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.remember-checkbox .dx-checkbox-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.forgot-password {
    font-size: 14px;
    color: #1872e4;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Action */
.submit-action .dx-button-default {
    background-color: #1872e4;
    border: none;
    border-radius: 8px;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(24, 114, 228, 0.25);
    transition: all 0.2s;
}

.submit-action .dx-button-default:hover {
    background-color: #1565cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 114, 228, 0.35);
}

.submit-action .dx-button-default:active {
    transform: translateY(0);
}

/* ── Card Footer ── */
.card-footer {
    background-color: #f7f9fa;
    padding: 24px 40px;
    text-align: center;
    border-top: 1px solid #edf1f3;
}

.copyright-new {
    font-size: 12px;
    color: #9aa4af;
    line-height: 1.6;
    font-weight: 500;
}