/* ===============================
   REGISTRATION PAGE – COMPACT PROFESSIONAL CSS
   =============================== */

/* 🔥 SINGLE SOURCE OF TRUTH (BUTTON + ICON COLOR) */
:root {
    --reg-btn-bg: linear-gradient(135deg, #0d6efd, #0a58ca);
}

body {
    font-family: 'Poppins', sans-serif;
}

/* ===============================
   CONTAINER
   =============================== */

.registration-container {
    max-width: 560px;
    margin: auto;
}

/* ===============================
   CARD
   =============================== */

.registration-card {
    background: #ffffff;
    padding: 24px 22px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Heading */
.registration-card h2 {
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* ===============================
   INPUT & SELECT
   =============================== */

.registration-card .form-control,
.registration-card select {
    height: 42px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
    transition: all 0.25s ease;
}

/* Focus */
.registration-card .form-control:focus,
.registration-card select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.15);
}

/* ===============================
   ICON INPUT (WITH BACKGROUND)
   =============================== */

.input-icon {
    position: relative;
}

/* Icon box */
.input-icon i {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--reg-btn-bg); /* 🔥 SAME AS BUTTON */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    pointer-events: none;
}

/* Padding for icon */
.input-icon .form-control,
.input-icon select {
    padding-left: 54px;
}

/* ===============================
   SELECT DROPDOWN ARROW
   =============================== */

.select-icon {
    position: relative;
}

.select-icon select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    cursor: pointer;
}

/* Right arrow */
.select-icon::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #6c757d;
    pointer-events: none;
}

/* Right padding for arrow */
.select-icon select {
    padding-right: 36px;
}

/* ===============================
   BUTTON
   =============================== */

.registration-card .btn-primary {
    height: 42px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    background: var(--reg-btn-bg); /* 🔥 SAME VARIABLE */
    border: none;
    transition: all 0.25s ease;
}

.registration-card .btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* ===============================
   SUCCESS ALERT
   =============================== */

#successAlert {
    border-radius: 6px;
    font-size: 13px;
    padding: 12px;
    margin-bottom: 14px;
}

#successAlert small {
    display: block;
    margin-top: 4px;
    color: #155724;
}

/* ===============================
   SPACING CONTROL
   =============================== */

.registration-card .mb-3 {
    margin-bottom: 10px !important;
}

.registration-card .mb-4 {
    margin-bottom: 14px !important;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 576px) {
    .registration-card {
        padding: 20px 16px;
    }
}
