:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --global-orange: #f97316;
    --global-orange-dark: #ea580c;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --success-color: #10b981;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

@media (max-width: 1023px) {
    body {
        overflow: auto !important;
    }
}

main.main-wrapper.ml-20.mt-20 {
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

.main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.modern-signin-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .modern-signin-container {
        position: static;
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }
}

.modern-signin-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/cons2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@media (max-width: 1023px) {
    .modern-signin-container::before {
        min-height: 100vh;
    }
}

.modern-signin-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 0;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

@media (min-width: 1024px) {
    .modern-signin-container {
        flex-direction: row;
    }
}

.signin-left-panel {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

@media (min-width: 1024px) {
    .signin-left-panel {
        width: 50%;
        min-height: 100vh;
    }
}

.background-image {
    display: none;
}

.background-overlay {
    display: none;
}

.left-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 600px;
}

.logo-container-left {
    margin-bottom: 3rem;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: fadeInDown 1s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1f2937;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1023px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: #f97316;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1023px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #1f2937;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    font-size: 1.25rem;
    color: #f97316;
}

.signin-right-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
    overflow-y: auto;
    z-index: 1;
    min-height: auto;
}

@media (min-width: 1024px) {
    .signin-right-panel {
        width: 50%;
        min-height: 100vh;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
        backdrop-filter: blur(20px);
        overflow-y: auto;
    }
}

@media (max-width: 1023px) {
    .signin-right-panel {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
}

.signin-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.6s ease-out;
    width: 100%;
    max-width: 480px;
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .signin-card {
        padding: 3rem 2.5rem;
    }
}

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

.signin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .signin-title {
        font-size: 1.75rem;
    }
}

.form-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-logo {
    max-width: 140px;
    height: auto;
    animation: fadeInScale 0.8s ease-out 0.3s both;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.signin-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.modern-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.modern-alert-error {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: var(--error-color);
}

.modern-alert-info {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
    color: var(--info-color);
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.alert-link:hover {
    opacity: 0.8;
}

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

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label i {
    font-size: 16px;
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.password-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: var(--text-light);
}

.password-wrapper .modern-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.toggle-password i {
    font-size: 20px;
}

.caps-warning {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 6px;
    display: none;
}

.caps-warning.active {
    display: block;
}

.login-help-section {
    margin-top: 20px;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 2px solid #06b6d4;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.help-link {
    color: #000000 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.help-link:hover {
    color: #1f2937 !important;
    gap: 10px;
    transform: scale(1.05);
}

.help-link i {
    font-size: 22px;
}

.modern-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--global-orange) 0%, var(--global-orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, var(--global-orange-dark) 0%, var(--global-orange) 100%);
}

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

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.modern-btn:hover .btn-icon {
    transform: translateX(4px);
}

.signin-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-text i {
    font-size: 16px;
    color: var(--primary-color);
}

@media (max-width: 1023px) {
    .signin-left-panel {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .hero-features {
        display: none;
    }
    
    .brand-logo {
        max-width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .background-image,
    .brand-logo,
    .hero-content,
    .signin-card,
    .modern-alert,
    .modern-btn::before {
        animation: none;
    }
}
