/* 
    Created on : Feb 26, 2025, 8:13:52 PM
    Author     : Pavlina.Vasilevska
*/

/** GLOBAL STYLES **/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Body & HTML: same background + images for all pages */
html, body {
    font-family: 'Poppins', sans-serif !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    background-color: #edede9 !important;
    background-image:
        url("/vigilanca/javax.faces.resource/images/wave2.png.xhtml"),
        url("/vigilanca/javax.faces.resource/images/billie-holiday.png.xhtml") !important;
    background-position: bottom center, center !important;
    background-repeat: no-repeat, repeat !important;
    background-size: 100% auto, auto !important;
    background-attachment: fixed !important;
    overflow: hidden !important;
    height: 100vh !important;
}
/* Allow scrolling only on the login page */
.hold-transition.login-page {
    overflow: auto !important;
}

/* Titles */
.page-title {
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}
.title-effect {
    background: linear-gradient(to right, #28a745, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
}
.malmed-title {
    font-size: 40px;
    font-weight: 400;
    color: #555;
    margin-left: 8px;
    letter-spacing: 2px;
}

/* Form Labels */
.loginLabels,
.registrationLabels {
    font-size: 14px !important;
    font-weight: bold !important;
    display: block !important;
    margin-bottom: 10px !important;
    color: #444 !important;
}

/* Form Controls */
.form-group {
    margin-bottom: 25px;
    position: relative;
}
.form-control {
    height: 40px !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    transition: border-color 0.3s ease-in-out !important;
}

.form-control:focus {
    border-color: #007bff !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4) !important;
}


/* Error Messages (fancy-error) */
.fancy-error {
    min-height: 20px;
    display: block;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    font-weight: bold;
    font-size: 12px;
    padding: 5px;
    border-left: 4px solid #ff4d4d;
    border-radius: 6px;
    margin-top: 5px;
    transition: all 0.3s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: 0.3s ease-in-out !important;
    border: none !important;
    padding: 12px !important;
    margin-bottom: 15px;
}
.btn-success {
    background-color: #28a745 !important;
    color: #fff !important;
    padding: 4px !important;
}
.btn-success:hover {
    background-color: #218838 !important;
    transform: scale(1.03) !important;
}
.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
}
.btn-danger:hover {
    background-color: #c82333 !important;
    transform: scale(1.03) !important;
}

/* Links */
a {
    color: #007bff !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    margin-top: 0 !important;       
    display: inline-block !important; 
}
a:hover {
    color: #5a87b8 !important;
}

/*side-by-side links (Login page) */
.link-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* DataTable styling (Registration) */
.drugTableStyle {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 10px !important;
}
.drugTableStyle th {
    background-color: #007bff !important;
    color: #fff !important;
    font-size: 16px !important;
    text-align: left !important;
}
.drugTableStyle td {
    background-color: #fff !important;
    padding: 10px !important;
    text-align: left !important;
    border-bottom: 1px solid #ddd !important;
}

/* PrimeFaces dropdown overrides */
.ui-selectonemenu {
    width: 100% !important;
    height: 48px !important;
    padding: 10px 15px !important;
    font-size: 17px !important;
    border: 1px solid #bbb !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    cursor: pointer !important;
}
.ui-selectonemenu-panel {
    border-radius: 6px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.ui-selectonemenu-item {
    padding: 10px !important;
    font-size: 15px !important;
}
.ui-selectonemenu-item.ui-state-highlight {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Captcha containers */
.captcha-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 38px;
}
.captcha-image {
    max-width: 120px;
    height: auto;
    display: block;
    margin-bottom: 8px;
}
.captcha-refresh {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

/*********  LOGIN PAGE SPECIFIC  ************/

.login-image {
    text-align: center !important;
    margin-bottom: 11px !important;
}
.login-illustration {
    max-width: 150px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* The main login box container */
.login-box {
    width: 100%;
    max-width: 570px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin: -12px auto;
}

/* New "Remember me" block*/
.remember-me-block {
    margin-top: 10px; 
    display: flex;
    align-items: center;
    gap: 8px; 
}
.remember-me-block .loginLabels {
    margin-bottom: 0 !important;
}

/* Icon inside fields */
.input-icon {
    position: relative;
    width: 100%;
}
.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}
.link-group {
    display: flex;
    justify-content: space-between; 
    width: 100%;                    
}

body .ui-g label.ui-outputlabel, body .ui-grid label.ui-outputlabel, body .box label.ui-outputlabel {
    margin-bottom: -3px !important;
}
/**REGISTRATION PAGE SPECIFIC**/
.registration-screen .login-box {
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
.registration-screen .form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.registration-screen .company-info,
.registration-screen .user-info {
    flex: 0 0 48%;
    max-width: 48%;
    min-width: 350px;
}
.registration-screen .other-info {
    text-align: center;
    margin-top: 20px;
}
.registration-screen h4 {
    font-size: 22px;
    color: #222;
    margin-bottom: 14px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 6px;
}
.registration-screen hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 25px;
}
.styledInnerPanel {
    margin-top: 0px;
    margin-left: 0px;
}
/* For Registration page button + link */
.registration-actions {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 10px;             
    margin-top: 20px;      
}

/* If you need to remove bottom margin from the button inside .registration-actions */
.registration-actions .btn {
    margin-bottom: 0 !important;
}


/** FORGOT PASSWORD PAGE SPECIFIC **/
.forgotpass-screen .login-box {
    width: 620px !important;
    background: #ffffff !important;
    padding: 35px !important;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.12) !important;
    border-radius: 10px !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
}
/* Container for Forgot Password button + link */
.forgot-actions {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 10px;             
    margin-top: 20px;     
}

/* Additional styling for the forgot password button */
.forgot-btn {
    margin-bottom: 0 !important;
}

/* Additional styling for the forgot password link */
.forgot-link {
    /*  font-weight: bold;   
    color: #007bff !important;
    text-decoration: none !important;
    /* etc. */
}

/** RESPONSIVE ADJUSTMENTS **/
@media (max-width: 900px) {
    .registration-screen .form-container {
        flex-direction: column !important;
    }
    .registration-screen .company-info,
    .registration-screen .user-info {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    /* Let smaller screens scroll if needed */
    .login-box {
        max-height: none !important;
    }
    .registration-screen .login-box,
    .forgotpass-screen .login-box {
        width: 90% !important;
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }
}
/* The .form-actions container ensures consistent spacing for button(s) & link(s) across all pages */
.form-actions {
    display: flex;
    flex-direction: column;    
    align-items: center;        
    gap: 10px;                  
    margin-top: 20px; 
}

.form-actions .btn {
    margin-bottom: 0 !important; 
}

.registration-screen .login-box {
    overflow-y: auto !important;
    max-height: 80vh !important;
}
/* Remove scrolling from all pages by default */
html, body {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Allow scrolling for the entire page when zoomed (Login & Forgot Password pages) */
.login-screen, 
.forgotpass-screen {
    overflow: auto !important;
}

/* Prevent scrolling inside the login and forgot password forms */
.login-screen .login-box, 
.forgotpass-screen .login-box {
    overflow: hidden !important;
    max-height: none !important;
}

/* Ensure the entire registration page does NOT scroll */
.registration-screen {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Allow scrolling inside the registration form ONLY */
.registration-screen .login-box {
    overflow-y: auto !important;
    max-height: 80vh !important;
}

/* Standard font settings for input fields */
.login-screen .form-control,
.forgotpass-screen .form-control {
    font-size: 14px !important;
    padding: 10px !important;
    height: 40px !important;
}

/* Standardize button size */
.login-screen .btn,
.forgotpass-screen .btn {
    font-size: 16px !important;
    padding: 10px !important;
    width: 100% !important;
}

/* Ensure page title consistency */
.login-screen .title-effect,
.forgotpass-screen .title-effect {
    font-size: 26px !important;
    font-weight: bold !important;
}

.login-screen .malmed-title,
.forgotpass-screen .malmed-title {
    font-size: 40px !important;
    font-weight: 400 !important;
}

/* Reserve space for error messages */
.fancy-error {
    min-height: 20px !important; 
    display: block;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    font-weight: bold;
    font-size: 12px;
    padding: 5px;
    border-left: 4px solid #ff4d4d;
    border-radius: 6px;
    margin-top: 5px;
    transition: all 0.3s ease-in-out;
}

/* Keep form input positions stable */
.form-group {
    margin-bottom: 30px !important; 
    position: relative;
}

/* Prevent form from resizing */
.login-box{
    min-height: 440px !important; 
}

.forgotpass-screen .login-box 
{
    min-height: 550px !important; 
}

/* Ensure buttons and inputs remain stable */
.login-screen .form-actions,
.forgotpass-screen .form-actions {
    margin-top: 20px !important;
}

