@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url(bg.jpg);
    height: 100vh;
    background-size: cover;
    background-position: center;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(2px);
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: 550px;
    max-width: 90vw;
    max-height: 85vh;
    padding: 25px 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.content header {
    color: rgb(191, 255, 220);
    font-size: 32px;
    font-weight: 700;
    position: relative;
    margin: 0 0 25px 0;
    font-family: 'Playfair Display', serif;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    margin: 8% auto;
    padding: 40px;
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: modalSlideIn 0.4s ease-out;
}

.modal-content h2 {
    color: rgb(191, 255, 220);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgb(191, 255, 220), rgba(191, 255, 220, 0.3));
    border-radius: 2px;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover,
.close:focus {
    color: rgb(191, 255, 220);
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    text-decoration: none;
}

/* Enhanced modal form styles */
.modal-content .field {
    margin-bottom: 25px;
}

.modal-content .field .details {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.modal-content .field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-content .field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modal-content .field input:focus {
    outline: none;
    border-color: rgb(191, 255, 220);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(191, 255, 220, 0.3);
}

.modal-content .btn {
    margin: 20px 0;
}

.modal-content .btn input {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, rgb(191, 255, 220), rgb(144, 238, 193));
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(191, 255, 220, 0.3);
    padding: 0;
    margin: 0;
}

.modal-content .btn input:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(191, 255, 220, 0.4);
}

.modal-content .media-options {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modal-content .media-options:hover {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: white;
}

.modal-content .media-options:hover .google-logo {
    filter: brightness(1.2);
}

.modal-content .google-logo {
    width: 20px;
    height: 20px;
    background: url('https://developers.google.com/identity/images/g-logo.png') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Fallback if external image doesn't load */
.modal-content .google-logo::before {
    content: 'G';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    font-family: 'Arial', sans-serif;
}

.modal-content .google-icon {
    font-size: 20px;
    color: #4285f4;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider span {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content header::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, rgb(191, 255, 220), rgba(191, 255, 220, 0.3));
    border-radius: 2px;
}

.content form .user-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0 15px 0;
    gap: 12px;
}

form .user-details .field {
    margin-bottom: 15px;
    width: calc(100% / 2 - 12px);
    position: relative;
}

.user-details .field .details {
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.user-details :where(.field input, .select-box) {
    height: 45px;
    width: 100%;
    outline: none;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-width: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.user-details .field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.user-details .field input:focus,
.user-details .field input:valid {
    border-color: rgb(191, 255, 220);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(191, 255, 220, 0.3);
}

.drop-down :where(input, .select-box) {
    margin-top: 10px;
}

.select-box select {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    background: transparent;
    cursor: pointer;
}

.select-box select option {
    background: #2a2a2a;
    color: white;
}

form .check-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.check-box input[type="checkbox"] {
    height: 16px;
    width: 16px;
    accent-color: rgb(191, 255, 220);
    cursor: pointer;
    transform: scale(1.1);
}

form .check-box label {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

/* .eye-icon {
    font-size: 18px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-30%);
    cursor: pointer;
    padding: 5px;
} */

form .btn {
    height: auto;
    margin: 20px 0 15px 0;
}

form .btn input {
    padding: 12px 25px;
    margin: 0;
    height: 48px;
    width: 100%;
    outline: none;
    color: #1a1a1a;
    background: linear-gradient(135deg, rgb(191, 255, 220), rgb(144, 238, 193));
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(191, 255, 220, 0.3);
}

form .btn input:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(191, 255, 220, 0.4);
}

.show {
    display: none;
    font-size: 13px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.show:hover {
    color: rgb(191, 255, 220);
    background: rgba(255, 255, 255, 0.2);
}

.password:valid~.show {
    display: block;
}

.cshow {
    font-size: 13px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px;
    display: none;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cshow:hover {
    color: rgb(191, 255, 220);
    background: rgba(255, 255, 255, 0.2);
}

.cpassword:valid~.cshow {
    display: block;
}

/* Override form styles for modal */
.modal-content form .btn {
    height: auto;
    margin: 20px 0;
}

.modal-content form .btn input {
    margin: 0;
    width: 100%;
    height: 50px;
    padding: 0;
}

input[type=submit] {
    background: linear-gradient(135deg, rgb(191, 255, 220), rgb(144, 238, 193));
    color: #1a1a1a;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
}

input[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(191, 255, 220, 0.4);
}

.signin {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.signin a {
    color: rgb(191, 255, 220);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signin a:hover {
    text-decoration: underline;
    color: rgb(144, 238, 193);
    text-shadow: 0 0 10px rgba(191, 255, 220, 0.5);
}

.line {
    position: relative;
    height: 2px;
    width: 100%;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 1px;
}

.line::before {
    content: 'Or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content .media-options {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 12px;
    padding: 12px;
    margin: 15px auto;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    height: 45px;
    position: relative;
    overflow: hidden;
}

.content .media-options:hover {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.content .media-options:hover .google-logo {
    filter: brightness(1.2);
}

.google-logo {
    width: 20px;
    height: 20px;
    background: url('https://developers.google.com/identity/images/g-logo.png') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Fallback if external image doesn't load */
.google-logo::before {
    content: 'G';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    font-family: 'Arial', sans-serif;
}

.content .media-options i {
    font-size: 20px;
    color: #4285f4;
}

/* Custom scrollbar for content */
.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(191, 255, 220, 0.5);
    border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(191, 255, 220, 0.7);
}

/* .media-options :hover {
    background: linear-gradient(-120deg, #4286f4d8, #34a853d2, #fbbd05d2, #ea4435ce);
    color: wheat;
} */


@media (max-width: 584px) {
    .content {
        max-width: 100%;
    }

    form .user-details .field {
        margin-bottom: 15px;
        width: 100%;
    }

    .content form .user-details {
        max-height: 300px;
        overflow-y: scroll;
    }

    .user-details::-webkit-scrollbar {
        width: 0;
    }
}