/* Login Page Styles - From Uiverse.io by mi-series */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #F5F5F5;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
}

.form_area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #EDDCD9;
    height: auto;
    width: auto;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 20px;
}

.title {
    color: #264143;
    font-weight: 900;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.sub_title {
    font-weight: 600;
    margin: 5px 0;
    color: #264143;
}

.form_group {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 10px;
}

.form_style {
    outline: none;
    border: 2px solid #264143;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    width: 290px;
    max-width: 100%;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 15px;
    background-color: white;
    box-sizing: border-box;
}

.form_style:focus, .btn:focus {
    transform: translateY(4px);
    box-shadow: 1px 2px 0px 0px #E99F4C;
}

.btn {
    padding: 15px;
    margin: 25px 0px;
    width: 290px;
    max-width: 100%;
    font-size: 15px;
    background: #DE5499;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 3px 3px 0px 0px #E99F4C;
    border: none;
    color: white;
    cursor: pointer;
    box-sizing: border-box;
}

.btn:hover {
    opacity: .9;
}

.link {
    font-weight: 800;
    color: #264143;
    padding: 5px;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

p {
    margin: 10px 0;
    color: #264143;
}

.error-list {
    background: rgba(222, 84, 153, 0.1);
    border: 2px solid #DE5499;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    width: 290px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
    color: #264143;
    text-align: left;
}

.error-list li {
    margin-bottom: 5px;
}

/* Popup Notification Styles */
.popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #EDDCD9;
    border: 2px solid #264143;
    border-radius: 10px;
    box-shadow: 3px 4px 0px 1px #E99F4C;
    padding: 15px 20px;
    min-width: 300px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

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

.popup-notification.success {
    background-color: #d4edda;
    border-color: #155724;
    box-shadow: 3px 4px 0px 1px #28a745;
}

.popup-notification.error {
    background-color: #f8d7da;
    border-color: #721c24;
    box-shadow: 3px 4px 0px 1px #dc3545;
}

.popup-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 5px;
    color: #264143;
}

.popup-message {
    font-size: 14px;
    color: #264143;
    margin: 0;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #264143;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

/* Responsive Design for Login CSS */

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .form_area {
        max-width: 400px;
        padding: 25px;
    }

    .form_style {
        width: 350px;
    }

    .btn {
        width: 350px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 15px;
    }

    .form_area {
        padding: 20px;
        margin: 10px;
        max-width: 90%;
    }

    .form_style {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    .title {
        font-size: 1.3em;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        min-height: 100vh;
    }

    .form_area {
        padding: 15px;
        margin: 5px;
        max-width: 95%;
        border-radius: 15px;
    }

    .title {
        font-size: 1.2em;
        margin: 10px 0 15px 0;
    }

    .form_style {
        width: 100%;
        padding: 12px 8px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 6px;
    }

    .btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin: 15px 0;
        border-radius: 8px;
    }

    .form_group {
        margin: 8px 0;
    }

    .sub_title {
        font-size: 13px;
    }

    .link {
        font-size: 13px;
        padding: 8px;
    }

    p {
        font-size: 14px;
        margin: 8px 0;
    }

    .error-list {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
    }

    .popup-notification {
        right: 10px;
        top: 10px;
        min-width: 250px;
        max-width: 90%;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .form_area {
        padding: 12px;
        margin: 3px;
    }

    .title {
        font-size: 1.1em;
    }

    .form_style {
        padding: 10px 6px;
        font-size: 15px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

    .sub_title {
        font-size: 12px;
    }

    .popup-notification {
        min-width: 200px;
        padding: 12px 15px;
    }
}

/* Landscape orientation improvements */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 5px;
    }

    .form_area {
        margin: 5px;
        padding: 15px;
    }

    .title {
        margin: 8px 0;
    }

    .btn {
        margin: 10px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form_area {
        border-width: 1px;
    }

    .form_style {
        border-width: 1px;
    }
}