/* الخلفية */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.login-wrapper {
    background: url('../images/background.png') no-repeat center center/cover;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 350px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #030596;
    font-size: 26px;
    font-weight: bold;
}

.login-container label {
    display: block;
    margin-top: 15px;
    text-align: right;
    font-weight: 500;
    color: #333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #7d0396;
    box-shadow: 0 0 8px rgba(125,3,150,0.3);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.login-container button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #7d0396;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-container button:hover {
    background-color: #5c026f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.login-container .error-msg {
    color: red;
    margin-top: 10px;
    min-height: 20px;
    font-weight: bold;
}

.login-container a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #030596;
    font-weight: bold;
}

.login-container a:hover {
    text-decoration: underline;
}

.login-container .create-account {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.login-container .create-account a {
    color: #7d0396;
    font-weight: bold;
    text-decoration: none;
}

.login-container .create-account a:hover {
    text-decoration: underline;
}
