* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-top: 0 !important;
}

#main {
    min-height: 100vh;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

#main::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    opacity: 0.1;
    z-index: 0;
}

#main::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    opacity: 0.1;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

.login-side-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-side-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-side-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.side-content {
    position: relative;
    z-index: 1;
}

.side-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.side-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    opacity: 0.9;
}

.feature-list li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.login-form-container {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section img {
    max-width: 140px;
    height: auto;
}

.login-header {
    margin-bottom: 35px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #718096;
    font-weight: 400;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #2d3748;
}

.form-control:focus {
    border-color: #667eea;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

.input-hint {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 6px;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.links-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.links-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 12px;
}

.links-section a:hover {
    color: #764ba2;
}

.link-separator {
    color: #cbd5e0;
    margin: 0 5px;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-danger {
    background-color: #fee;
    color: #c53030;
    border-left: 4px solid #fc8181;
}

.alert-success {
    background-color: #f0fdf4;
    color: #2f855a;
    border-left: 4px solid #68d391;
}

.alert-info {
    background-color: #eff6ff;
    color: #2c5282;
    border-left: 4px solid #63b3ed;
}

.alert-warning {
    background-color: #fffbeb;
    color: #c05621;
    border-left: 4px solid #f6ad55;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
    padding: 0;
    margin-left: 10px;
}

.btn-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .login-side-panel {
        display: none;
    }

    .login-form-container {
        padding: 40px 30px;
    }

    .login-wrapper {
        margin: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-wrapper {
    animation: fadeInUp 0.6s ease-out;
}
