.form {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-edit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 250, 250, 0.2);
    max-width: 360px;
    width: 100%;
    color: #fff;
    box-shadow: 0 10px 30x rgba(0, 0, 0, 0.3);
}

.card-edit {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
    color: #fff;
    box-shadow: 0 10px 30x rgba(0, 0, 0, 0.3);
}

.card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.card p {
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.card-edit h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.card-edit p {
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}

/* input[type="username"], */
input[type="email"],
select[name="role_id"],
select[name="is_active"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition:
        background 0.3s,
        box-shadow 0.3s;
}

/* input[type="username"]::placeholder, */

input[type="email"]::placeholder,
select[name="Role id"]::placeholder,
select[name="Status"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.actions a {
    color: #c4b5fd;
    text-decoration: none;
    margin-left: auto;
}

.actions a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition:
        opacity 0.3s,
        transform 0.1s;
}

.btn:hover {
    background: linear-gradient(90deg, #a855f7, #6366f1);
    transform: scale(1.05);
    opacity: 0.9;
}

.btn:active {
    transform: translateY(1px);
}

.alt {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.alt a {
    color: #c4b5fd;
    text-decoration: none;
}

.alt a:hover {
    color: #38bdf8;
}

@media (max-width: 768px) {
    .form,
    .form-edit {
        padding: 16px;
        min-height: 50vh;
        box-sizing: border-box;
    }

    .card,
    .card-edit {
        max-width: 100%;
        padding: 1.5rem;
        border-radius: 14px;
    }

    .card h1,
    .card-edit h1 {
        font-size: 1.35rem;
    }

    label {
        font-size: 0.8rem;
    }

    input[type="email"],
    input[type="password"] {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
