/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
}

/* Main container */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Section with background image */
.left {
    flex: 1;
    background: url("/javax.faces.resource/images/login-bg.jpg.xhtml?ln=materials") no-repeat left center/cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay h1 {
    font-size: 3rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Right Section */
.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    padding: 2.5rem;
    width: 420px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.logo {
    margin-bottom: 0.5rem;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: #003366;
}

label {
    display: block;
    text-align: left;
    margin: 0.5rem 0 0.3rem;
    font-size: 14px;
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    background: rgba(108, 117, 125, 0.3) !important;
    border-radius: 6px;
    font-size: 14px;
}

.password-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.password-container label {
    margin: 0;
}

.options-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    margin-left: 0.5rem;
}

.forgot {
    font-size: 13px;
    color: #0056b3;
    text-decoration: none;
}

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


.btn {
    width: 100%;
    padding: 10px;
    background: #0056b3;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* Custom dialog styling for password reset */
.custom-dialog .ui-dialog {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.custom-dialog .ui-dialog-content {
    padding: 2rem !important;
    background: white !important;
    border-radius: 0 0 12px 12px !important;
}

.custom-dialog .ui-dialog-titlebar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 2rem !important;
}

.custom-dialog .ui-dialog-title {
    color: #003366 !important;
    font-weight: 600 !important;
}

.custom-dialog .ui-dialog-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    border-radius: 0 0 12px 12px !important;
    padding: 1rem 2rem !important;
    text-align: center !important;
}

.custom-dialog .ui-button {
    background: #0056b3 !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.custom-dialog .ui-button:hover {
    background: #004090 !important;
}

.custom-dialog .ui-button.ui-state-focus {
    background: #004090 !important;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25) !important;
}

/* Success button styling */
.ui-button-success {
    background: #28a745 !important;
    border: none !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.ui-button-success:hover {
    background: #218838 !important;
}

.ui-button-success.ui-state-focus {
    background: #218838 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left {
        flex: 0 0 40%;
        min-height: 200px;
    }
    
    .right {
        flex: 1;
        padding: 1rem;
    }
    
    .login-card {
        width: 90%;
        max-width: 380px;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .left {
        flex: 0 0 30%;
        min-height: 150px;
    }
    
    .login-card {
        width: 95%;
        padding: 1.5rem;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
    }
}