/* --- Variables and Base Reset --- */
:root {
    --api-dark-bg: #101010;
    --api-red: #d33838;
    --api-light-red: #ff3333;
    --api-text-light: #f0f0f0;
    --api-text-dim: #999999;
    --api-text-dark: #333333;
    --card-red-color: #C43737; 
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

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

.login-left {
    flex: 1;
    background-color: var(--api-dark-bg);
    color: var(--api-text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/loginbg.png");
    background-size: cover;       
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    filter: blur(4px);            
}


.left-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.login-logo {
    height: 60px;
    margin-bottom: 20px;
}
.input-wrapper .icon::after {
    content: '';
    position: absolute;
        top: -14px;
    right: -8px;
    width: 1px;
    height: 44px;
    background-color: rgb(255, 255, 255);
}

.welcome-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--api-text-light);
    color: #FFFFFF;
}

.subtitle {
    font-size: 14px;
    color: var(--api-text-light);
    margin-bottom: 25px;
    opacity: 0.9;
     color: #FFFFFF;
}

.separator-line {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, #dbd7d7 0%, #FFFFFF 100%);
    opacity: 0.5;
    margin: 20px 0 40px 0;
}

.security-tagline {
    font-size: 40px;
    font-weight: 400;
    color: var(--api-text-light);
    line-height: 1.4;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 50px;
}

.login-card {
    background-color: var(--card-red-color);
    border-radius: 44px; 
    padding: 50px; 
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-left: -60%;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.login-card label {
    display: block;
    color: var(--api-text-light);
    font-weight: 400; 
    font-size: 1em;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    background-color: rgba(100, 20, 20, 0.002); 
    border: 1px solid rgb(255, 255, 255); 
    border-radius: 8px;
    color: var(--api-text-light);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    overflow: hidden;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-wrapper input:focus {
    border-color: var(--api-text-light);
}

.input-wrapper .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--api-text-light);
    font-size: 16px;
    opacity: 0.9;
    left: 14px;
    
}

.input-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--api-text-light);
    font-size: 16px;
    right: 12px; 
    cursor: pointer;
    opacity: 0.9;
}

.login-button {
    width: 100%;
    padding: 15px;
    background-color: #ffffff;
    color: var(--card-red-color); 
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.login-button:hover {
    background-color: #f5f5f5;
    color: var(--api-red);
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 40px 20px;
        height: 30vh; 
        min-height: 250px;
        align-items: center;
        background-color: #FFFFFF;
    }
    
    .left-content-wrapper {
        max-width: 90%;
        text-align: center;
    }

    .separator-line {
        display: none; 
    }
    
    .logo-area {
        align-self: flex-start; 
    }

    .security-tagline {
        font-size: 24px;
        line-height: 1.3;
        margin-top: 10px;
    }

    .welcome-heading, .subtitle {
        text-align: center;
    }

    .login-right {
        padding: 40px 20px;
    }

    .login-card {
        max-width: 100%;
        margin-left: 0; 
        padding: 30px;
        border-radius: 15px;
    }
    
}

@media (max-width: 500px) {
    .login-card {
        padding: 25px;
    }
}