﻿/* Optify ERP - Company Registration Styles
 * This CSS enhances the registration page to be more modern and consistent with the AdminLTE theme
 *
 * Brand Colors (Replace with your exact codes):
 * Primary (Dark Blue): #004085
 * Secondary / Warning / Info (Vibrant Orange/Yellow): #FF9900
 */

/* Define your brand colors as CSS variables */
:root {
    --optify-dark-blue: #004085; /* Your Dark Blue - Primary */
    --optify-orange: #FF9900; /* Your Vibrant Orange/Yellow - Accent */
    --optify-white: #ffffff;
    --optify-light-grey: #f8f9fa; /* Used for light backgrounds */
    --optify-medium-grey: #555; /* Standard text color */
    --optify-dark-text: #212529; /* Darker text color */
    --optify-border-color: #ddd; /* Default input border color */
    --optify-danger: #dc3545; /* Standard danger/error color */
}


/* --- Page Layout & Container --- */

/* Company Registration Container */
.createNewCompany-container {
    background-color: var(--optify-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    width: 100%;
    /* min-height: auto; /* Keep or remove based on desired behavior */
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Adjust spacing around the main content row */
.row.justify-content-between.p-5.mt-5.mx-auto {
    /* Review padding and margin based on overall page layout */
    /* Example adjustments: */
    /* padding: 2rem !important; */
    /* margin-top: 2rem !important; */
    /* max-width: 1200px; /* Optional: Limit max width on very large screens */
}


/* --- Company Logo & Titles --- */

/* Container for the logo/brand text */
.createNewCompanyLogo {
    width: 100%;
    text-align: left; /* Default text align */
    font-size: 2.2rem; /* Keep font size for text fallback */
    font-weight: 600;
    color: var(--optify-dark-blue);
    border-bottom: none;
    margin-bottom: 1.5rem;
}

    /* Style for the actual logo image */
    .createNewCompanyLogo .optify-logo-img {
        max-width: 100%; /* Ensure image doesn't overflow container */
        height: auto; /* Maintain aspect ratio */
        /* max-height is set inline in the HTML for flexibility */
    }


.text-left {
    text-align: left !important;
}

.createNewCompanySubTitel {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: var(--optify-medium-grey); /* Use a consistent text color variable */
    margin-bottom: 2rem;
    font-weight: 500;
}


/* --- Features Section Styling --- */
.companyRegestrationFeatures h3 {
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--optify-dark-blue); /* Use dark blue for headings */
    margin-bottom: 1.5rem;
}

.companyRegestrationFeatures p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--optify-medium-grey); /* Use a consistent text color variable */
    margin-bottom: 1.5rem;
    text-align: justify;
}

    .companyRegestrationFeatures p strong {
        color: var(--optify-dark-blue); /* Highlight strong text with dark blue */
    }

.companyRegestrationFeatures ul {
    padding-left: 1rem;
    list-style: none; /* Remove default bullets */
}

.companyRegestrationFeatures li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--optify-medium-grey); /* Default list item text color */
}

    /* Custom orange bullet point */
    .companyRegestrationFeatures li:before {
        content: "•";
        color: var(--optify-orange); /* Use orange for bullets */
        font-size: 1.5rem;
        position: absolute;
        left: 0;
        top: -0.1rem; /* Adjust vertical alignment of bullet */
        line-height: 1; /* Prevent bullet affecting line height */
    }

.companyRegestrationFeatures a {
    color: var(--optify-dark-blue); /* Use dark blue for links */
    text-decoration: none;
    transition: color 0.2s ease;
}

    .companyRegestrationFeatures a:hover {
        color: var(--optify-orange); /* Orange on link hover */
        text-decoration: underline; /* Add underline on hover for clarity */
    }

/* If you intended the span inside li to be orange, keep this */
.companyRegestrationFeatures li span {
    color: var(--optify-orange) !important;
}


/* --- Form Controls --- */

.createNewCompanyInputs {
    display: block;
    padding: 0.75rem 0.5rem 0.5rem;
    border: none;
    border-bottom: 2px solid var(--optify-border-color); /* Default border color */
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--optify-dark-text); /* Input text color */
    background-color: transparent;
    height: 45px; /* Consistent height */
    transition: all 0.3s ease;
}

    .createNewCompanyInputs:focus {
        border-bottom: 2px solid var(--optify-dark-blue); /* Dark blue on focus */
        box-shadow: none; /* Ensure no default focus shadow */
        /* Optional: Add a subtle box-shadow on focus if desired */
        /* box-shadow: 0 2px 5px rgba(0, 64, 133, 0.1); */
    }

    .createNewCompanyInputs::placeholder {
        color: #aaa;
        opacity: 0.8; /* Slightly less transparent */
    }

/* Select box customization */
select.createNewCompanyInputs {
    cursor: pointer;
    /* Use CSS variables in SVG URL if possible, or keep hardcoded grey */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Labels */
form label {
    display: block;
    margin-bottom: 0.35rem; /* Slightly more space below label */
    font-weight: 500;
    color: var(--optify-medium-grey); /* Use consistent label color */
    font-size: 0.9rem;
}

/* Required field mark */
.createNewCompanyMandatory-mark {
    color: var(--optify-danger); /* Standard red for required mark */
    font-weight: bold;
    margin-left: 0.2rem;
}

/* Invalid fields */
.createNewCompanyInValid {
    border-bottom: 2px solid var(--optify-danger) !important; /* Red border for invalid */
    background-color: rgba(var(--optify-danger-rgb, 220, 53, 69), 0.05); /* Subtle red background */
}

    .createNewCompanyInValid:focus {
        border-bottom: 2px solid var(--optify-danger) !important;
        /* Optional: Add red box shadow for focus on invalid */
        /* box-shadow: 0 0 0 0.2rem rgba(var(--optify-danger-rgb, 220, 53, 69), 0.25); */
    }

/* Style for per-field validation messages (if implemented) */
.field-validation-error {
    color: var(--optify-danger); /* Red color for error text */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}


/* Email alert text */
.createNewCompanyEmailAlert {
    color: var(--optify-medium-grey); /* Use consistent grey */
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
    margin-top: -0.25rem;
    font-style: italic;
}

/* Register button */
.createNewCompanyRegisterBtn {
    background-color: var(--optify-dark-blue); /* Dark blue button */
    border-color: var(--optify-dark-blue);
    color: var(--optify-white); /* White text */
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    width: 100%; /* Full width button */
    margin-top: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 64, 133, 0.3); /* Dark blue shadow */
}

    .createNewCompanyRegisterBtn:hover,
    .createNewCompanyRegisterBtn:focus {
        background-color: #003366; /* Slightly darker blue on hover */
        border-color: #003366;
        color: var(--optify-white);
        transform: translateY(-1px); /* Slight lift effect */
        box-shadow: 0 4px 8px rgba(0, 64, 133, 0.4);
    }

    .createNewCompanyRegisterBtn:active {
        transform: translateY(1px); /* Press down effect */
        box-shadow: 0 1px 3px rgba(0, 64, 133, 0.4);
    }


/* --- Top Navigation Bar --- */

.container-fluid.bg-light {
    background-color: var(--optify-light-grey) !important; /* Keep light background or change */
    border-bottom: 1px solid #e9ecef; /* Subtle border */
    padding: 0.75rem 1rem !important;
}

    .container-fluid.bg-light a {
        color: var(--optify-dark-blue); /* Use dark blue for links */
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .container-fluid.bg-light a:hover {
            color: var(--optify-orange); /* Orange on link hover */
            text-decoration: none; /* No underline on hover for these links */
        }

/* Style for button-like links in the top bar */
.btn-link {
    color: var(--optify-dark-blue); /* Use dark blue */
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .btn-link:hover {
        background-color: rgba(0, 64, 133, 0.05); /* Subtle blue background on hover */
        color: #003366; /* Slightly darker blue text on hover */
        text-decoration: none;
    }

/* Language switcher enhancement */
a[href*="lang="] {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease; /* Add color transition */
    color: var(--optify-dark-blue); /* Use dark blue */
}

    a[href*="lang="]:hover {
        background-color: rgba(0, 64, 133, 0.05);
        color: #003366; /* Slightly darker blue text */
    }

    /* Style the language icon */
    a[href*="lang="]:before {
        content: "🌐"; /* Globe emoji */
        margin-right: 0.5rem;
        font-size: 1.1em; /* Slightly larger icon */
    }

/* Documentation link enhancement */
a[href*="documentation"] {
    display: inline-flex;
    align-items: center;
    color: var(--optify-dark-blue); /* Use dark blue */
    transition: color 0.2s ease;
}

    a[href*="documentation"]:hover {
        color: var(--optify-orange); /* Orange on hover */
    }

    /* Style the documentation icon */
    a[href*="documentation"]:before {
        content: "📚"; /* Books emoji */
        margin-right: 0.5rem;
        font-size: 1.1em; /* Slightly larger icon */
    }


/* --- Responsive Adjustments --- */

@media (max-width: 767.98px) { /* Use Bootstrap breakpoint */
    .row.justify-content-between {
        padding: 1rem !important;
        margin-top: 1rem !important;
        margin-left: 0 !important; /* Ensure no side margins */
        margin-right: 0 !important;
    }

    .createNewCompany-container {
        padding: 20px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Softer shadow on mobile */
    }

    .createNewCompanyLogo {
        font-size: 1.8rem; /* Adjust font size for text fallback */
        text-align: center; /* Center logo on mobile */
        margin-bottom: 1rem; /* Adjust margin */
    }

        .createNewCompanyLogo .optify-logo-img {
            max-height: 40px; /* Adjust max height for mobile logo */
        }


    .createNewCompanySubTitel {
        font-size: 1.25rem;
        margin-bottom: 1.5rem; /* Adjust margin */
    }

    /* Adjust spacing for columns on mobile */
    .col-12 {
        margin-bottom: 1rem;
    }
        /* Remove extra bottom margin on the last form group before the button */
        .col-12:last-of-type {
            margin-bottom: 0;
        }
}


/* --- Validation & Alert Styling --- */

/* Alert styling (Keep as is or adjust to brand colors) */
.alert-danger {
    background-color: #f8d7da; /* Bootstrap default */
    border-color: #f5c6cb; /* Bootstrap default */
    color: #721c24; /* Bootstrap default */
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}


/* Add animation for form submission feedback */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Optional: Style form groups or rows for better separation */
/* .form-group, .form-row > .col, .form-row > [class^="col-"] {
    margin-bottom: 15px;
} */

/* --- Optify Branding & Modern Card Layout --- */
.optify-card {
    background: var(--optify-white);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 64, 133, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
}

.optify-logo-main {
    max-height: 70px;
    margin-bottom: 0.5rem;
}

.optify-title {
    color: var(--optify-dark-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.optify-subtitle {
    color: var(--optify-medium-grey);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.optify-label {
    color: var(--optify-dark-blue);
    font-weight: 600;
    font-size: 1rem;
}

.optify-required {
    color: var(--optify-orange) !important;
}

.optify-btn {
    background: var(--optify-dark-blue);
    color: var(--optify-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 64, 133, 0.08);
}
.optify-btn:hover, .optify-btn:focus {
    background: var(--optify-orange);
    color: var(--optify-dark-blue);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.10);
}

.optify-input {
    border-bottom: 2px solid var(--optify-border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.optify-input:focus {
    border-bottom: 2px solid var(--optify-dark-blue);
    background: #f4f8fc;
}

.optify-bg {
    background: var(--optify-light-grey) !important;
}

.optify-link {
    color: var(--optify-dark-blue) !important;
    font-weight: 500;
    transition: color 0.2s;
}
.optify-link:hover, .optify-link:focus {
    color: var(--optify-orange) !important;
    text-decoration: underline;
}

/* Responsive adjustments for card */
@media (max-width: 767.98px) {
    .optify-card {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .optify-title {
        font-size: 1.4rem;
    }
}
