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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B00 0%, #E63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.loader-brand {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

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

.loader-icon-box {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: rotate3d 3s ease-in-out infinite;
}

@keyframes rotate3d {
    0%, 100% {
        transform: perspective(600px) rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: perspective(600px) rotateY(180deg) rotateX(5deg);
    }
}

.loader-icon-box i {
    font-size: 48px;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.loader-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.loader-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.loader-spinner {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 48px;
    height: 48px;
    border-width: 3px;
    animation-duration: 1.6s;
    animation-direction: reverse;
    position: absolute;
}

.spinner-ring:nth-child(3) {
    width: 36px;
    height: 36px;
    border-width: 3px;
    animation-duration: 2s;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.8px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

.main-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    min-height: 650px;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    margin: 20px;
}

.info-section {
    flex: 1;
    background: linear-gradient(135deg, #ccbcb0 0%, #4a3f3f 100%);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -120px;
    right: -120px;
    animation: float 5s ease-in-out infinite;
}

.info-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.info-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.info-logo-container {
    margin-bottom: 30px;
}

.info-logo {
    width: 180px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.info-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-subtitle {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 35px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.info-divider {
    width: 60px;
    height: 3px;
    background: white;
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.info-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.92;
}

.info-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.feature-item i {
    font-size: 16px;
}

.info-footer {
    margin-top: 40px;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.company-badge i {
    font-size: 14px;
}

.form-section {
    flex: 1;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

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

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: #8b92a7;
    font-weight: 400;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

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

.alert i {
    font-size: 16px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-form {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e8eaf0;
}

.form-group label i {
    font-size: 12px;
    opacity: 0.8;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 15px;
    color: #FF6B00;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid rgba(139, 146, 167, 0.15);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(22, 33, 62, 0.3);
    color: #ffffff;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #FF6B00;
    background: rgba(22, 33, 62, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #8b92a7;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle-password:hover {
    color: #FF6B00;
    background: rgba(255, 107, 0, 0.1);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(139, 146, 167, 0.3);
    border-radius: 5px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(22, 33, 62, 0.3);
    flex-shrink: 0;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #FF6B00 0%, #E63946 100%);
    border-color: #FF6B00;
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.checkbox-label {
    color: #b0b7c3;
    font-weight: 500;
}

.forgot-link {
    color: #FF6B00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.forgot-link:hover {
    color: #E63946;
    background: rgba(255, 107, 0, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8b92a7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 8px;
}

.back-link:hover {
    color: #ffffff;
    background: rgba(139, 146, 167, 0.1);
    transform: translateX(-4px);
}

.back-link i {
    font-size: 11px;
}

.btn-primary {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #FF6B00 0%, #E63946 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

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

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-text,
.btn-icon {
    transition: all 0.3s ease;
}

.btn-primary:hover:not(.loading) .btn-icon {
    transform: translateX(4px);
}

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-icon {
    opacity: 0;
    transform: translateY(-20px);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-primary.loading .btn-loader {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .info-section {
        padding: 45px 35px;
    }

    .info-title {
        font-size: 32px;
    }

    .form-section {
        padding: 45px 35px;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        border-radius: 16px;
    }

    .info-section {
        padding: 35px 25px;
    }

    .info-logo {
        width: 140px;
    }

    .loader-logo {
        width: 120px;
    }

    .info-title {
        font-size: 28px;
    }

    .loader-title {
        font-size: 24px;
    }

    .form-section {
        padding: 35px 25px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .spinner-ring {
        width: 45px;
        height: 45px;
    }

    .spinner-ring:nth-child(2) {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .loader-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .info-title {
        font-size: 24px;
    }

    .form-title {
        font-size: 22px;
    }

    .btn-primary {
        padding: 14px 18px;
        font-size: 14px;
    }
}