@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    color: #333;
}

.container {
    margin: 0 15px;
    width: 100%;
    max-width: 450px;
}

.form-box {
    width: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-box.active {
    display: block;
}

h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 20px;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #eee;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

input:focus,
select:focus {
    background: #e0e0e0;
}

button {
    width: 100%;
    padding: 12px;
    background: #7494ec;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    transition: 0.5s;
}

button:hover {
    background: #6884d3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-bottom: 10px;
}

p a {
    color: #7494ec;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* مؤشر قوة كلمة المرور */
.password-strength {
    margin-top: -15px;
    margin-bottom: 15px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    height: 8px;
    width: 0;
    background-color: #ddd;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    flex: 1;
}

.strength-text {
    font-size: 12px;
    color: #666;
    min-width: 100px;
}

/* مؤشر تطابق كلمة المرور */
.match-indicator {
    margin-top: -15px;
    margin-bottom: 15px;
    font-size: 13px;
    padding-right: 5px;
}

/* تلميحات الحقول */
.field-hint {
    margin-top: -15px;
    margin-bottom: 15px;
    font-size: 12px;
    padding-right: 5px;
}

/* تحسين مظهر الحقول */
input[type="url"]:invalid,
input[type="tel"]:invalid {
    border-left: 3px solid #e74c3c;
}

input[type="url"]:valid,
input[type="tel"]:valid {
    border-left: 3px solid #2ecc71;
}