:root {
    --register: rgba(41, 121, 255, 1);
    --register-border: rgb(187, 222, 251);
}

/* Main form container */
.form-group {
    padding: 0 2rem;
    width: auto;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

/* Input fields */
.form-control {
    width: 100%;
    min-width: 30%;
    max-width: 50%;
}

/* Layout for each search line */
.search-container .search-id,
.search-container .search-name {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

/* Label alignment */
.search-container label {
    flex: 0 0 9rem;
    text-align: left;
}

/* Shared has-search container */
.has-search {
    position: relative;
    display: flex;            /* make icon, input, and buttons align horizontally */
    align-items: center;
    gap: 0.9rem;              /* small space between input and buttons */
    width: 100%;
    max-width: 50%;
}

/* Adjust search icon within input */
.has-search .search-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* Input padding for icon */
.has-search .form-control {
    padding-left: 2.2rem;
    flex: 1; /* let the input expand */
}

/* Buttons right next to input */
.has-search .btn {
    height: 2.4rem; /* align visually with input height */
    padding: 0 1rem;
    white-space: nowrap;
}

/* Hover effect for register button */
.btn_color_register:hover {
    background-color: var(--register-border);
    border: 1px solid var(--register);
}

/* Generic button styling */
.btn {
    width: auto;
}

/* Register button alignment */
.register-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 6rem;
}

.register-button-container a {
    text-decoration: none;
    color: white;
}

.alert {
    text-align: center;
}

.success-modal{
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-wrap{
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 320px;
}