@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&amp;display=swap');

:root {
    --primary-color: #8E6CE0;
    --bg-dark: #121A2A;
    --bg-darker: #0D1321;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Welcome */
.welcome-side {
    flex: 1;
    background-color: #ffffff;
    /* #032d499a;*/
    /*var(--bg-dark);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    position: relative;
}

.logo-container {
    position: relative;
    top: 50px;
    left: 10%;
}

.logo-container img {
    width: 350px;
    height: auto;
}

.welcome-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #032d499a;
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin: 0;
}

/* Right Side - Form */
.form-side {
    flex: 1;
    background: linear-gradient(rgba(18, 26, 42, 0.7), rgba(18, 26, 42, 0.7)),
    url("");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
}

.login-form-card {
    width: 100%;
    max-width: 400px;
}

.login-form-card h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: left;
}

/* PrimeFaces Overrides */
.ui-inputfield {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-white) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    width: 100% !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.ui-inputfield:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(142, 108, 224, 0.2) !important;
}

.p-field {
    margin-bottom: 20px;
}

.login-button {
    background: #ff8903de !important;
    /* var(--primary-color) !important;*/
    border: none !important;
    color: white !important;
    padding: 12px 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    width: 180px !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-button .ui-button-icon-left {
    margin-right: 8px !important;
    font-size: 1.2rem !important;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.forgot-link {
    color: #8E6CE0 !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .welcome-side {
        display: none;
    }

    .form-side {
        flex: 1;
        padding: 20px;
    }
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}