.signin-dialog {
    border: none;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.signin-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.dialog-content {
    background-image: url('#'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Overlay for better text readability */
.dialog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.3) 30%, 
        rgba(255, 20, 147, 0.2) 70%, 
        rgba(0, 0, 0, 0.4) 100%);
    border-radius: 20px;
    z-index: 1;
}

.dialog-content > * {
    position: relative;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dialog-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.dialog-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #C7B9E3;
}

.dialog-header p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.auth-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    color: #C7B9E3;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: #00FFFF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #FF1493;
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signin-btn {
    background: linear-gradient(135deg, #C7B9E3 0%, #8A2BE2 100%);
    color: white;
}

.register-btn {
    background: linear-gradient(135deg, #FF1493 0%, #8A2BE2 100%);
    color: white;
}

.image-caption {
    margin-left: 55px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(-1px);
}

.switch-auth {
    text-align: center;
    margin-top: 1.5rem;
    color: white;
}

.switch-auth a {
    color: #00FFFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-auth a:hover {
    color: #FF1493;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .signin-dialog {
        width: 95%;
        margin: 10px;
    }
    
    .dialog-content {
        padding: 1.5rem;
        min-height: 450px;
    }
    
    .dialog-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-form h3 {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 10px 14px;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dialog-content {
        padding: 1rem;
        min-height: 400px;
    }
    
    .dialog-header h2 {
        font-size: 1.4rem;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}