/* Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700|Poppins:400,500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    background: #000;
}

.bg-img {
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-img:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.content {
    position: relative;
    z-index: 999;
    text-align: center;
    padding: 60px 40px;
    /* Reduced from 60px 32px */
    width: 420px;
    /* Wider for better field spacing */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.content header {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 35px 0;
}

.logo-img {
    width: 60px;
    margin-bottom: 20px;
}

.field {
    position: relative;
    height: 45px;
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 5px;
    margin-bottom: 15px;
    /* Added margin */
}

.field span.fa {
    color: #222;
    width: 40px;
    line-height: 45px;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select {
    height: 100%;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #222;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    padding-left: 15px;
}

.field input::placeholder {
    color: #999;
}

/* Password Show/Hide */
.show {
    position: absolute;
    right: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #ff0000;
    line-height: 45px;
    cursor: pointer;
    user-select: none;
}

.pass {
    text-align: left;
    margin: 10px 0;
}

.pass a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.pass a:hover {
    text-decoration: underline;
}

/* Submit Button */
.field input[type="submit"] {
    background: #e60000;
    /* Solid fallback */
    background: linear-gradient(to right, #ff0000, #cc0000);
    /* Bright Red to Darker Red */
    border: 1px solid #cc0000;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-left: 0;
}

.field input[type="submit"]:hover {
    background: #cc0000;
    /* Darker red on hover */
    transform: scale(1.02);
}

.signup {
    font-size: 15px;
    color: #fff;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
}

.signup a {
    color: #FF5252;
    text-decoration: none;
}

.signup a:hover {
    text-decoration: underline;
}


/* Signup Specifics */
.signup-content {
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.signup-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.signup-content {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Social Login */
.social-login {
    margin: 20px 0;
}

.social-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.google-btn {
    background: white;
    color: #333;
}

.google-btn:hover {
    background: #f1f1f1;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 10px;
}

/* Profile Photo */
.profile-photo-field {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.photo-label {
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-label i {
    font-size: 30px;
    color: #FF5252;
}

.photo-preview {
    margin-top: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FF5252;
    display: none;
}

.photo-preview.active {
    display: block;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gender Options */
.gender-field {
    background: transparent;
    display: block;
    height: auto;
    color: white;
    text-align: left;
}

.gender-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ddd;
}

.gender-options {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input {
    width: auto;
    height: auto;
    margin-left: 5px;
    padding: 0;
    box-shadow: none;
}

/* Date Input Fix */
input[type="date"] {
    color: #222;
}

/* Responsive */
@media screen and (max-width: 550px) {

    .content,
    .signup-content {
        width: 100%;
    }
}

/* Back to Home Button */
.back-to-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Poppins', sans-serif;
}

.back-to-home:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.back-to-home i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-home:hover i {
    transform: translateX(-3px);
}