/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body & Background */
body {
    background: linear-gradient(135deg, #1c1f2b, #2a2d3d);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Form Container */
form {
    background: #2a2d3d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    margin: 2rem auto;
    transition: transform 0.3s ease-in-out;
}

form:hover {
    transform: translateY(-3px);
}

/* Headings */
h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #00e6e6;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 15px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #1f2233;
    color: #eee;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border-color: #00bfff;
    outline: none;
    box-shadow: 0 0 8px #00bfff;
}

/* Buttons */
button,
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(to right, #00bfff, #4facfe);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Glowing Submit Loading */
button.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Link Styling */
p {
    margin-top: 15px;
    text-align: center;
}

a {
    color: #00e6e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #66fcf1;
    text-shadow: 0 0 5px #00e6e6;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Profile Picture */
.profile-pic-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid #00bcd4;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
    background-color: #1f2233;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload Button */
#upload-btn {
    background: #00bcd4;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
    transition: background 0.3s ease;
}

#upload-btn:hover {
    background: #00acc1;
}

/* Modal Cropper */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #2a2d3d;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    color: #eee;
}

.image-container {
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
}

.close {
    color: #ccc;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

#crop-btn {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

#crop-btn:hover {
    background: #43a047;
}

/* OTP Style */
input[type="text"][name="otp"] {
    letter-spacing: 6px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background: #1f2233;
    border: 1px solid #00e6e6;
    box-shadow: 0 0 8px #00e6e6;
}

/* Gender Select Custom Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 30px;
}

/* Responsive */
@media (max-width: 480px) {
    form {
        padding: 1.5rem;
        width: 95%;
    }

    h2 {
        font-size: 1.5rem;
    }

    input,
    button {
        font-size: 15px;
    }
}
