.login-body {
    background: url('/static/img/main.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 8%;
    position: relative;
}

.register-body {
    background: url('/static/img/main.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.page-title {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-60%);
    color: white;
    z-index: 10;
}

.page-title-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.page-title h1 {
    font-size: 60px;
    font-weight: 400;
    margin: 0 0 12px 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.page-title p {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
    letter-spacing: 2px;
    font-weight: 300;
}

.error-message {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    height: 620px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.login-form-group label {
    width: 40px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
}

.login-form-group .input-wrapper {
    flex: 1;
    position: relative;
}

.login-form-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.login-form-group input:focus {
    outline: none;
    border-color: rgb(41, 139, 239);
    background: white;
}

.login-form-group select.year-select {
    width: 100%;
    padding: 12px 36px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.login-form-group select.year-select:hover {
    border-color: rgb(41, 139, 239);
    background: white;
}

.login-form-group select.year-select:focus {
    outline: none;
    border-color: rgb(41, 139, 239);
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 139, 239, 0.1);
}

.login-form-group .input-wrapper.select-wrapper {
    position: relative;
}

.login-form-group .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 12px;
    transition: color 0.3s;
}

.login-form-group .input-wrapper.select-wrapper:hover .select-arrow,
.login-form-group select.year-select:focus+.select-arrow {
    color: rgb(41, 139, 239);
}

.login-form-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

.login-form-group .toggle-password:hover {
    color: rgb(41, 139, 239);
}

.forgot-form-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

.company-info-wrapper {
    margin-bottom: 20px;
}

.company-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    gap: 8px;
    box-sizing: border-box;
}

.company-info-wrapper.show {
    display: flex;
}

.company-info i {
    font-size: 16px;
    color: rgb(41, 139, 239);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: rgb(41, 139, 239);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-hint {
    text-align: center;
    color: #e53935;
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
    line-height: 16px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 139, 239, 0.4);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.footer-tip {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.register-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.register-link {
    display: inline-block;
    color: #4caf50;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.register-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.forgot-password {
    color: rgb(41, 139, 239);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: rgb(31, 119, 219);
    text-decoration: underline;
}

.logged-in-container {
    text-align: center;
    padding: 40px 20px;
}

.logged-in-icon {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.logged-in-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.logged-in-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.logged-in-name {
    font-weight: 600;
    color: rgb(41, 139, 239);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.primary {
    background: rgb(41, 139, 239);
    color: white;
}

.action-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay.show {
    display: flex;
}

.auth-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-modal-icon {
    font-size: 40px;
    color: #ff9800;
    margin-bottom: 16px;
}

.auth-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-modal-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.auth-modal-buttons {
    display: flex;
    gap: 10px;
}

.auth-modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.auth-modal-btn.confirm {
    background: #f44336;
    color: white;
}

.auth-modal-btn.cancel {
    background: #f5f5f5;
    color: #666;
}

.forgot-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    height: 620px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.forgot-header {
    text-align: center;
    margin-bottom: 15px;
}

.forgot-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.forgot-header p {
    color: #666;
    font-size: 14px;
}

.forgot-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.forgot-form-group label {
    width: 70px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
}

.forgot-form-group .input-wrapper {
    flex: 1;
    position: relative;
}

.forgot-form-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.forgot-form-group input:focus {
    outline: none;
    border-color: rgb(41, 139, 239);
    background: white;
}

.reset-btn {
    width: 100%;
    padding: 14px;
    background: rgb(41, 139, 239);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 139, 239, 0.4);
}

.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-link {
    display: inline-block;
    color: rgb(41, 139, 239);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 8px;
    text-align: center;
    display: block;
}

.back-link:hover {
    color: rgb(31, 119, 219);
    text-decoration: underline;
}

.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.register-header {
    text-align: center;
    margin-bottom: 15px;
}

.register-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.register-header p {
    color: #666;
    font-size: 14px;
}

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.register-form-row .register-form-group:only-child {
    grid-column: 1 / -1;
}

.register-form-row .form-group {
    margin-bottom: 0;
}

.register-form-group {
    margin-bottom: 10px;
}

.register-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.register-form-group label .required {
    color: #c62828;
    margin-left: 4px;
}

.register-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.register-form-group input:focus {
    outline: none;
    border-color: rgb(41, 139, 239);
    background: white;
}

.register-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.register-select:focus {
    outline: none;
    border-color: rgb(41, 139, 239);
    background-color: white;
}

.register-select:hover {
    border-color: rgb(41, 139, 239);
    background-color: white;
}

.register-form-group input:disabled {
    background: #e8e8e8;
    cursor: not-allowed;
}

.captcha-container {
    margin-bottom: 12px;
}

.slider-container {
    position: relative;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    cursor: default;
}

.slider-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgb(41, 139, 239);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease;
}

.slider-btn {
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: left 0.1s ease;
    z-index: 10;
}

.slider-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-btn.dragging {
    box-shadow: 0 4px 16px rgba(41, 139, 239, 0.5);
}

.slider-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    pointer-events: none;
    z-index: 5;
}

.slider-text.success {
    color: #4caf50;
}

.register-btn {
    width: 100%;
    padding: 14px;
    background: rgb(41, 139, 239);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.register-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 139, 239, 0.4);
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.login-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: rgb(41, 139, 239);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.agreement-section {
    margin-bottom: 12px;
}

.agreement-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.agreement-label input[type="checkbox"] {
    display: none;
}

.agreement-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.agreement-label input[type="checkbox"]:checked+.agreement-checkbox {
    background: rgb(41, 139, 239);
    border-color: rgb(41, 139, 239);
}

.agreement-label input[type="checkbox"]:checked+.agreement-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.agreement-link {
    color: rgb(41, 139, 239);
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.agreement-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.agreement-modal-overlay.show {
    display: flex;
}

.agreement-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.agreement-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.agreement-modal-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.agreement-close-btn:hover {
    color: #666;
    background: #f5f5f5;
}

.agreement-modal-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.agreement-modal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgb(41, 139, 239);
}

.agreement-modal-content h3:first-child {
    margin-top: 0;
}

.agreement-modal-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 10px 0;
}

.agreement-modal-content p {
    margin: 8px 0;
    text-indent: 2em;
}

.agreement-modal-content .agreement-item {
    margin: 6px 0;
    text-indent: 0;
    padding-left: 20px;
    position: relative;
}

.agreement-modal-content .agreement-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgb(41, 139, 239);
    font-weight: bold;
}

.agreement-modal-content pre {
    white-space: pre-wrap;
    margin: 0;
    font-family: inherit;
}

.agreement-loading {
    text-align: center;
    color: #999;
    padding: 40px;
}

.agreement-error {
    text-align: center;
    color: #f44336;
    padding: 40px;
}

.agreement-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.agreement-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.agreement-btn-primary {
    background: rgb(41, 139, 239);
    color: white;
}

.agreement-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.icp-footer {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
}

.icp-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.icp-footer a:hover {
    color: white;
    text-decoration: underline;
}