@font-face {
    font-family: 'Yekan';
    src: url('/static/fonts/Yekan.woff2') format('woff2'),
         url('/static/fonts/Yekan.woff') format('woff'),
         url('/static/fonts/Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, input, select, button, label {
    font-family: 'Yekan', 'Vazirmatn', Tahoma, sans-serif !important;
}

body {
    background: #a3d8e6;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
}
.user-info{
    align-items: center;
    flex-direction: column;
    display: flex;
}
.login-container {
    max-width: 350px;
    margin: 0 auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #7baedc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e6f2fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.avatar img {
    width: 80px;
    height: 80px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}

.login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #5b8ee6;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form button[type="submit"]:hover {
    background: #3a6bb1;
}

.login-links {
    margin-top: 18px;
    text-align: right;
    width: 100%;
}

.login-links a {
    color: #3a6bb1;
    text-decoration: none;
    font-size: 15px;
    margin-right: 0;
    margin-left: 10px;
    display: inline-block;
}

.login-links a:first-child {
    margin-bottom: 14px;
}

.bottom-curve {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 160px;
    z-index: 0;
    pointer-events: none;
}

.version {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #3a6bb1;
    font-size: 18px;
    font-weight: 500;
    z-index: 1;
    background: transparent;
}

@media (max-width: 400px) {
    .login-container {
        max-width: 95vw;
    }
    .avatar {
        width: 90px;
        height: 90px;
    }
    .avatar img {
        width: 60px;
        height: 60px;
    }
}

/* Floating label styles */
.floating-group {
    position: relative;
    margin-bottom: 28px;
}
.floating-group input,
.floating-group select {
    width: 100%;
    padding: 16px 12px 8px 12px;
    border-radius: 14px;
    border: none;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}
.floating-group input:focus,
.floating-group select:focus {
    box-shadow: 0 0 0 2px #5b8ee6;
}
.floating-group label.floating-label {
    position: absolute;
    right: 10px;
    top: -10px;
    color: #5b8ee6;
    font-size: 13px;
    background: #e6f2fa;
    padding: 0 6px;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
    transition: none;
}
.floating-group input:focus + label.floating-label,
.floating-group input:not(:placeholder-shown) + label.floating-label,
.floating-group select:focus + label.floating-label,
.floating-group select:not([value=""]) + label.floating-label {
    top: -10px;
    right: 10px;
    font-size: 13px;
    color: #5b8ee6;
    background: #e6f2fa;
    padding: 0 6px;
    border-radius: 8px;
}

/* Specific rule for birth date label to always be at top right */
.floating-group input[id^="id_birth_date"] + label.floating-label {
    top: -10px !important;
    right: 10px !important;
    font-size: 13px !important;
    color: #5b8ee6 !important;
    background: #e6f2fa !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    transition: none !important;
}

.toggle-boolean-group {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 10px;
    margin-bottom: 0;
}
.toggle-boolean-btn {
    background: #e6f2fa;
    border: none;
    color: #5b8ee6;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 32px;
    border-radius: 0 18px 18px 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(91,142,230,0.10);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    outline: none;
}
.toggle-boolean-btn:last-child {
    border-radius: 18px 0 0 18px;
    border-right: 1px solid #b3d6f2;
}
.toggle-boolean-btn.selected {
    background: #5b8ee6;
    color: #fff;
    box-shadow: 0 4px 16px rgba(91,142,230,0.18);
    transform: scale(1.05);
    z-index: 1;
} 