/* 
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
 */

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef3ff, #dfe9ff);
}

 .form_container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    padding: 30px 24px 24px;
 }

.overlay {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.25);
}

.popup {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    padding: 30px 24px 24px;
}

h2 {
    margin: 0 0 18px;
    text-align: center;
    color: #1f2937;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.input-wrap {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 90%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.password-wrap input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    padding: 4px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
}

.submit-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
   background: #4f46e5;
    color: white;
}

.cancel-btn {
   flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    background: #e5e7eb;
    color: #111827;
}

.helper {
    text-align: center;
    margin-top: 14px;
}

.helper a {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
}

.helper a:hover {
    text-decoration: underline;
}

.status {
    min-height: 22px;
    margin-top: 16px;
    margin-bottom: 32px;
    color: #f50c0c;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.status.error {
    color: #dc2626;
}

.status.success {
    color: #15803d;
}
