body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #dbeafe, #fdf2f8);
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    animation: fadeIn 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #1d4ed8;
}

/* Form layout */
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 420px;
    max-width: 90%;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
    padding: 12px;
    border: 2px solid #c7d2fe;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* Checkbox style */
input[type="checkbox"] {
    accent-color: #2563eb;
    transform: scale(1.2);
    margin-right: 8px;
}

/* file-upload button */
.file-upload {
    display: flex;
    align-items: center;
}
.file-upload input[type="file"] {
    display: none;
}
.file-label {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(90deg, #c7d2fe, #f0f9ff);
    color: #1d4ed8;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid rgba(99,102,241,0.12);
    box-shadow: 0 6px 20px rgba(99,102,241,0.06);
}

/* Buttons */
.btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.btn-submit {
    width: 140px;
    margin-top: 10px;
    align-self: center;
}

.btn-del {
    background: #ef4444;
    padding: 6px 15px;
    font-size: 14px;
}

.btn-del:hover {
    background: #dc2626;
}

/* Animated auth links */
.auth-link {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    animation: glow 1.5s infinite alternate;
}

.auth-link:hover {
    color: #1d4ed8;
    transform: scale(1.05);
}

@keyframes glow {
    from {
        text-shadow: 0 0 6px #3b82f6, 0 0 12px #60a5fa, 0 0 24px #93c5fd;
    }
    to {
        text-shadow: 0 0 10px #1d4ed8, 0 0 20px #3b82f6, 0 0 40px #60a5fa;
    }
}

/* table / content wrapper */
.table-wrap {
    margin-top: 30px;
    overflow-x: auto;
}

/* profile card on home */
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    width: 420px;
}

/* small responsive tweak */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 15px;
    }

    .reg-form {
        width: 100%;
    }

    .profile-card {
        width: 100%;
    }
}

/* animations & messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.error {
    background: #fff0f1;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(185,28,28,0.08);
    box-shadow: 0 6px 16px rgba(185,28,28,0.03);
    animation: fadeIn 0.35s ease;
}

.success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(6,95,70,0.06);
    box-shadow: 0 6px 16px rgba(6,95,70,0.03);
    animation: fadeIn 0.35s ease;
}

/* small utility */
.controls .showcode-btn {
    background: #10b981;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}
