/* General Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body and Background Image */
body {
    background: url('../assets/images/User4.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Signup Form Container */
.container {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px); /* Increased blur for a glassy look */
    background: rgba(255, 255, 255, 0.1); /* Very transparent background */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}


h1 {
    text-align: center;
    color: #070111;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3a3a3a;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus {
    border-color: #7b2ff7;
    box-shadow: 0 0 8px rgba(123, 47, 247, 0.4);
    outline: none;
}

/* Image Upload Styles */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed #7b2ff7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(123, 47, 247, 0.05);
    overflow: hidden;
    position: relative;
}

.image-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-preview__default-text {
    color: #7b2ff7;
    font-size: 14px;
    padding: 0 20px;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to right, #7b2ff7, #f107a3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
    text-align: center;
}

.image-upload-btn:hover {
    transform: translateY(-2px);
}

.image-upload-btn input[type="file"] {
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-right: 10px;
}

.error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

button {
    background: linear-gradient(to right, #7b2ff7, #f107a3);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(to right, #f107a3, #7b2ff7);
    transform: translateY(-2px);
}

.admin-link {
    text-align: center;
    margin-top: 20px;
}

.admin-link a {
    color: #ff5d8f;
    text-decoration: none;
    font-weight: 700;
}

.admin-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
}

.password-toggle {
    position: relative;
}

.password-toggle i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.success-message {
    background-color: #c8e6c9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border: 2px solid #2e7d32;
}