:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --error-color: #f56565;
    --info-color: #4299e1;
}

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

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
}

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;
}

.signin-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px 0;
    margin: 0 !important;
}

.signin-section::before {
    content: '';
    position: absolute;
    top: -250px;
    left: -250px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.signin-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.signin-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 20px;
}

.auth-row {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideUp 0.6s ease-out;
}

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

.auth-cover-wrapper {
    background: var(--primary-gradient);
    padding: 48px 32px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-cover {
    text-align: center;
    color: white;
}

.auth-cover .title h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.auth-cover .title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.auth-cover .title a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cover-image {
    margin: 32px 0;
}

.cover-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.shape-image {
    margin-top: 24px;
}

.shape-image img {
    max-width: 100%;
    height: auto;
    opacity: 0.3;
}

.signin-wrapper {
    padding: 48px 40px;
}

.form-wrapper h6 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-wrapper p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.input-style-1 {
    margin-bottom: 24px;
}

.input-style-1 label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-style-1 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;
}

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

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

.main-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;
}

.main-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;
}

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

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-hover:hover {
    transform: translateY(-2px);
}

.hover-underline {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.hover-underline:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.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);
    }
}

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

.progress {
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    transition: width 0.3s ease;
    font-size: 12px;
}

@media (max-width: 991px) {
    .auth-row {
        flex-direction: column;
    }
    
    .auth-cover-wrapper {
        min-height: auto;
        padding: 32px 24px;
    }
    
    .signin-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .form-wrapper h6 {
        font-size: 20px;
    }
    
    .auth-cover .title h1 {
        font-size: 24px;
    }
    
    .cover-image {
        margin: 24px 0;
    }
}

.password-header {
    text-align: center;
    margin-bottom: 24px;
}

.password-header .icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.password-header .icon-wrapper i {
    font-size: 28px;
    color: white;
}

.password-requirements {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

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

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

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.requirements-list li i {
    font-size: 16px;
    color: var(--error-color);
    transition: all 0.3s ease;
}

.requirements-list li.valid {
    color: #10b981;
}

.requirements-list li.valid i {
    color: #10b981;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modern-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modern-btn i {
    font-size: 18px;
}

.btn-toggle {
    max-width: 180px;
}

@media (max-width: 991px) {
    .auth-row {
        flex-direction: column;
    }
    
    .auth-cover-wrapper {
        min-height: auto;
        padding: 32px 24px;
    }
    
    .signin-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .signin-section {
        padding: 15px 0;
        min-height: auto;
    }
    
    .signin-section .container {
        padding: 10px;
    }
    
    .form-wrapper h6 {
        font-size: 20px;
    }
    
    .auth-cover .title h1 {
        font-size: 24px;
    }
    
    .cover-image {
        margin: 24px 0;
    }
    
    .auth-cover-wrapper {
        padding: 24px 16px;
    }
    
    .signin-wrapper {
        padding: 24px 16px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-toggle {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signin-section::before,
    .signin-section::after,
    .auth-row,
    .alert,
    .main-btn::before {
        animation: none;
    }
}
