:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --bg-slate: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f1f5f9;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg_violet {
    background: #bd10e0 !important;
    ;
}

.bg_green {
    background-color: #8bc34a !important;
}

.bg_orange {
    background-color: #f60 !important;
}

.bg_blue {
    background-color: #04a1d4 !important;
}

.bg_red {
    background-color: #f00 !important;
}

.bg_brown {
    background-color: #c3a34a !important;
}

.bg_green_bold {
    background: #057c40 !important;
}
.border_violet {
    border-color: #bd10e0 !important;
    ;
}

.border_green {
    border-color: #8bc34a !important;
}

.border_orange {
    border-color: #f60 !important;
}

.border_blue {
    border-color: #04a1d4 !important;
}

.border_red {
    border-color: #f00 !important;
}

.border_brown {
    border-color: #c3a34a !important;
}

.border_green_bold {
    border-color: #057c40 !important;
}
.color_violet {
    color: #bd10e0 !important;
    ;
}

.color_green {
    color: #8bc34a !important;
}

.color_orange {
    color: #f60 !important;
}

.color_blue {
    color: #04a1d4 !important;
}

.color_red {
    color: #f00 !important;
}

.color_brown {
    color: #c3a34a !important;
}
.box_pop {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.box_pop .box_pop_content {
    left: 50% !important;
    top: 50% !important;
    position: fixed !important;
    transform: translate(-50%, -50%) !important;
    padding: 15px 20px;
    padding-bottom: 25px;
    width: 430px;
    max-width: calc(100% - 20px);
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -o-border-radius: 8px;
    background: #fff;
}

.box_pop .box_pop_content .pop_title {
    font-size: 20px;
    text-align: center;
    margin: 10px 0 20px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.box_pop .box_pop_content .pop_content {
    width: 100%;
    display: inline-block;
}

.box_pop .box_pop_content .pop_content .li_input {
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
}

.box_pop .box_pop_content .pop_content .li_input label {
    width: 100%;
    display: inline-block;
    height: 20px;
    margin-bottom: 10px;
}

.box_pop .box_pop_content .pop_content .li_input input {
    margin: 0;
    width: 100%;
    height: 49px;
    font-size: 15px;
    color: #354052;
    margin-bottom: 10px;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -o-border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15) !important;
}

.box_pop .box_pop_content .pop_content .li_input select {
    margin: 0;
    width: 100%;
    height: 49px;
    font-size: 15px;
    color: #354052;
    margin-bottom: 10px;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -o-border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15) !important;
}

.box_pop .box_pop_content .pop_content .li_input button {
    border: none;
    border-radius: 5px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
    background-color: #f0564a;
    font-weight: 600;
}

.box_pop .box_pop_content .pop_button {
    width: 100%;
    display: inline-block;
    margin-top: 10px;
}

.box_pop .box_pop_content .pop_button .text_left {
    float: left;
    line-height: 35px;
}

.box_pop .box_pop_content .pop_button .text_left a:hover {
    color: #f0564a;
}

.box_pop .box_pop_content .pop_button .text_right {
    float: right;
}

.box_pop .box_pop_content .pop_button .text_center {
    text-align: center;
}

.box_pop .box_pop_content .pop_button .text_center button {
    padding: 0 10px;
    border: none;
    border-radius: 5px;
    line-height: 35px;
    color: #fff;
    font-size: 13px;
    width: 100px;
    cursor: pointer;
    margin-left: 5px;
    background-color: #f0564a;
    font-weight: 600;
}

.box_pop .box_pop_content .pop_button .text_right button {
    padding: 0 10px;
    border: none;
    border-radius: 5px;
    line-height: 35px;
    color: #fff;
    font-size: 13px;
    width: 100px;
    cursor: pointer;
    margin-left: 5px;
    background-color: #f0564a;
    font-weight: 600;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
    z-index: -1;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-me {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.commune-info {
    margin-top: 24px;
    text-align: center;
}

#commune-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Response messaging */
.login-message {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.login-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
    display: block;
}
.login-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
    display: block;
}