*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    padding: 0;
}

.login-header {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #FFF4B8 0%, #FFE4B8 100%);
    border-radius: 2px;
}

.login-header h2 {
    margin: 0;
    font-weight: 300;
    font-size: 28px;
}

.login-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.login-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    padding: 15px 20px 15px 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #F8F9FA;
    color: #2C3E50;
}

.form-control:focus {
    border-color: #2C3E50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    background: white;
}

.form-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFE4B8;
    font-size: 18px;
}

.btn-login {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFF4B8 0%, #FFE4B8 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-login:hover::before {
    left: 0;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
    color: #2C3E50;
}

.btn-login span {
    position: relative;
    z-index: 1;
}

.alert {
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-danger {
    background-color: #ffe6e6;
    color: #d63384;
}

.alert-success {
    background-color: #e6ffe6;
    color: #198754;
}

.demo-accounts {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.demo-accounts h6 {
    color: #495057;
    margin-bottom: 15px;
}

.demo-account {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-account:hover {
    background: #e9ecef;
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        max-width: none;
    }

    .login-header,
    .login-body {
        padding: 30px 20px;
    }
}