/* Basic styling for login page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header-bar {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.header-center {
    flex: 1;
    text-align: left;
    padding-left: 20px;
    min-width: 0;
}

.header-center h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-center p {
    color: white;
    font-size: 12px;
    text-align: left;
    margin: 2px 0 0 0;
    opacity: 0.95;
}

.header-center p.established {
    font-size: 11px;
    opacity: 0.9;
}

.header-right {
    flex-shrink: 0;
    margin-left: auto;
}

.logo-badge {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Content */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-box {
    width: 100%;
    max-width: 450px;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.login-card-body {
    padding: 40px;
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.register-link {
    color: #5B7FFF;
    text-decoration: none;
    font-weight: 500;
}

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

/* Form Styles */
.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #5B7FFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.1);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 15px;
}

.btn-primary {
    background: #5B7FFF;
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #4A6FEE;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 127, 255, 0.3);
}

.btn-block {
    display: block;
}

/* Demo Accounts Section */
.demo-accounts {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.demo-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.demo-info {
    font-size: 12px;
    color: #888;
    margin: 4px 0;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    position: absolute;
    right: 10px;
    top: 10px;
    line-height: 1;
}

/* Footer Styles */
.footer-bar {
    background: white;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-bar p {
    margin: 0;
    font-size: 13px;
    color: #5B7FFF;
}

/* Utility Classes */
p {
    margin-bottom: 15px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

a {
    color: #5B7FFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}
