
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;

    /* border: 1px dashed red; */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}


.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:  linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 20px;
}

.login-card, .password-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    width: 450px; 
    
    text-align: center;
    box-sizing: border-box; 
}

.wide-card {
    max-width: 550px !important;
    width: 100%;
}


.login-header h1 {
    margin: 10px 0 5px;
    color: #0f4a8a;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.login-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.input-wrapper input:focus, #verify-code:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.form-row .input-group {
    flex: 1;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    cursor: pointer;
    appearance: none; 
}

select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn, .btn-primary {
    width: 100%;
    padding: 12px;
    background: #0f4a8a;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.login-btn:hover, .btn-primary:hover { 
    background: #0a3161; 
    transform: translateY(-1px); 
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.login-footer a { color: #3b82f6; font-weight: 600; text-decoration: none; }

#code-input-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.captcha-container {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
    text-align: left;
}

.captcha-container label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #475569;
}

.captcha-container strong {
    color: #1e3a8a;
    font-size: 1.1rem;
}

.forced-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 20px;
}


.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
}

.content-area {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}


.main-panel .password-card {
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.error-box {
    color: #ef4444;
    background: #fef2f2;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-size: 0.85rem;
    display: none; 
    text-align: left;
}

.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none; 
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}