/* Two-Column Login Card Design */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
}

/* Container for login page */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content area */
#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    width: 100%;
    margin: 0;
}

/* Center the login form */
.content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login card container */
.login-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main login card */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 500px;
}

/* Left Panel - Login Form */
.login-panel {
    flex: 1;
    background: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo branding */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 36px;
    font-weight: bold;
    color: #f5365c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-logo p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
    font-weight: 400;
}

.login-header h2 {
    text-align: center;
    font-size: 21px;
    font-weight: 500;
    color: #666;
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
}

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f5365c;
    background: white;
}

.form-control::placeholder {
    color: #999;
}

/* Signin button */
.btn-signin {
    width: 100%;
    padding: 15px;
    background: linear-gradient(87deg, #f5365c, #f56036) !important;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-signin:hover {
    opacity: 0.9;
}

/* Right Panel - Welcome Message */
.welcome-panel {
    flex: 1;
    background: linear-gradient(87deg, #f5365c, #f56036) !important;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* Feature highlights */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.feature i {
    font-size: 16px;
    opacity: 0.9;
}

/* Error styling */
.alert {
    border-radius: 4px;
    border: 1px solid;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer */
footer {
    background: linear-gradient(87deg, #f5365c, #f56036) !important;
    color: white;
    padding: 25px 30px 35px;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 100;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    #container {
        padding: 5px;
        width: 100%;
        margin: 0;
    }

    .login-card-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .login-card {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .login-panel,
    .welcome-panel {
        padding: 30px 20px;
    }

    .login-header h2,
    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-content p {
        font-size: 14px;
    }

    .login-logo h1 {
        font-size: 28px;
    }

    .feature-highlights {
        gap: 12px;
    }

    .feature {
        font-size: 13px;
    }
}

/* Extra small screens - phones */
@media (max-width: 480px) {
    body {
        margin: 0;
        padding: 0;
    }

    #wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #container {
        padding: 0;
        width: 100%;
    }

    .login-card-container {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel {
        padding: 20px 15px;
    }

    .welcome-panel {
        padding: 20px 15px;
    }

    .login-logo h1 {
        font-size: 24px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .welcome-content h2 {
        font-size: 22px;
    }
}

/* Fix Bootstrap grid issues on mobile */
@media (max-width: 768px) {
    .row {
        margin: 0 !important;
        width: 100% !important;
    }

    .col-sm-10 {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide sidebar on login page */
    .col-sm-2 {
        display: none !important;
    }

    /* Ensure no horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid #f5365c;
    outline-offset: 2px;
}