/* Modal and Overlay Styles */
* {
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}
  
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    padding: 0 28px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

#overlay.hidden {
    opacity: 0;
    visibility: hidden;
    display: none !important;
}
  
.modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
  
#close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}
  
#close-modal-btn:hover {
    color: #6a0dad;
}
  
.form {
    display: flex;
    flex-direction: column;
}
  
.log_head {
    font-size: 2.6rem;
    color: #fff; 
    margin-bottom: 20px;
}
  
label {
    display: block;
    text-align: left;
    margin-top: 10px;
    font-size: 1.4rem;
    color: #fff;
}
  
.form input {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    width: 100%;
    font-size: 1.4rem;
    box-sizing: border-box;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
  
.form input:focus {
    outline: none;
    border-color: #6a0dad;
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.3);
}

.form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
  
.action-btn {
    background: linear-gradient(135deg, #6a0dad, #9b59b6);
    width: 100%;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}
  
.action-btn:hover {
    background: linear-gradient(135deg, #9b59b6, #6a0dad);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
}

.action-btn:active {
    transform: translateY(1px);
}
  
.no-acc {
    margin-top: 10px;
    color: #fff;
    font-size: 1.2rem;
}
  
.no-acc a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}
  
.no-acc a:hover {
    text-decoration: underline;
    color: #6a0dad;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #F44336;
}

.notification i {
    margin-right: 15px;
    font-size: 22px;
}

.notification i.fa-check-circle {
    color: #4CAF50;
}

.notification i.fa-exclamation-circle {
    color: #F44336;
}

.notification span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification .close-notification {
    margin-left: 15px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.notification .close-notification:hover {
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal {
        width: 80%;
        padding: 15px;
    }
  
    label {
        font-size: 1.4rem; 
    }
  
    .form input {
        font-size: 1.4rem;
        padding: 8px;
    }
    
    button {
        font-size: 1.4rem; 
        padding: 8px 12px;
    }
    .log_head{
        margin: 12px 0;
        font-size: 2.2rem;
    }
    .action-btn{
        font-size: 1.4rem; 
    }
    #overlay{
        padding: 0 22px;
    }
}
  
@media (max-width: 480px) {
    .modal {
        width: 95%;
        padding: 10px;
        border-radius: 8px;
    }
  
    label {
        font-size: 1.2rem;
    }
  
    .form input {
        font-size: 1.2rem; 
        padding: 6px;
    }
    
    button {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
    
    .log_head{
        margin: 8px 0;
        font-size: 1.8rem;
    }
    
    .no-acc {
        font-size: 1.1rem;
    }

    #overlay{
        padding: 0 15px;
    }
}
