body{
    background-color: #544bda;
}

/* ===== Container ===== */
form {
    max-width: 450px;
    margin: 50px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: "Segoe UI", sans-serif;
}

/* ===== Form Groups ===== */
form > div {
    margin-bottom: 18px;
}

/* ===== Labels ===== */
form label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

/* ===== Inputs ===== */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 90%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
    background-color: #fdfdfd;
}

form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
    outline: none;
}

/* ===== Error Messages ===== */
.x-input-error,
form .error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
}

/* ===== Link Styles ===== */
form a {
    font-size: 13px;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s;
}

form a:hover {
    color: #3730a3;
}

/* ===== Button Styles ===== */
button,
.x-primary-button {
    background: #4f46e5;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

button:hover,
.x-primary-button:hover {
    background: #4338ca;
}

/* ===== Flex Layout for Last Row ===== */
form .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Mobile Adjustments ===== */
@media (max-width: 500px) {
    form {
        padding: 20px;
        margin: 30px 15px;
    }
    form .flex {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}
