:root {
    --solutech-blue: #2563eb;
    --solutech-green: #059669;
    --solutech-dark-gray: #374151;
    --primary-color: var(--solutech-blue);
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: var(--solutech-green);
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-gradient: linear-gradient(135deg, var(--solutech-blue) 0%, var(--solutech-green) 100%);
    --card-background: rgba(255, 255, 255, 0.95);
    --card-background-solid: #ffffff;
    --text-primary: var(--solutech-dark-gray);
    --text-secondary: #6b7280;
    --text-light: #94a3b8;
    --border-color: #e5e7eb;
    --border-focus: var(--solutech-blue);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --backdrop-blur: blur(10px);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}


@keyframes patternMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-20px) translateY(-20px); }
}


.login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--card-background);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--solutech-blue), var(--solutech-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

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

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

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

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-background-solid);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, var(--solutech-blue) 0%, var(--solutech-green) 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

.login-button:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.button-text {
    position: relative;
    z-index: 2;
}

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-actions {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 8px;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.forgot-password-link:hover {
    color: var(--solutech-blue);
    background-color: rgba(37, 99, 235, 0.05);
    text-decoration: none;
    transform: translateY(-1px);
}

.forgot-password-link i {
    font-size: 12px;
}

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

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.security-info i {
    font-size: 16px;
}

.help-text {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.login-footer-global {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    margin-top: auto;
}

.login-footer-global .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.login-footer-global .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-footer-global .brand-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.login-footer-global .brand-info h6 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.login-footer-global .brand-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

.login-footer-global .footer-contact {
    text-align: right;
}

.login-footer-global .footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 2px 0;
}

.login-footer-global .footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer-global .footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

@media (max-width: 768px) {
    .login-page-container {
        padding: 16px;
        min-height: calc(100vh - 60px);
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .login-footer-global .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .login-footer-global .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .login-button {
        padding: 16px 20px;
    }
    
}

@media (min-width: 1200px) {
    .login-content {
        max-width: 500px;
    }
    
    .login-card {
        padding: 56px 48px;
    }
    
    .login-title {
        font-size: 36px;
    }
    
    .form-input {
        padding: 18px 24px;
        font-size: 17px;
    }
    
    .login-button {
        padding: 20px 28px;
        font-size: 17px;
    }
}

/* SweetAlert Custom Styles */
.swal2-popup-custom {
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.swal2-title-custom {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.swal2-confirm-custom {
    background: linear-gradient(135deg, var(--solutech-blue) 0%, var(--solutech-green) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.swal2-cancel-custom {
    background: #6b7280 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel-custom:hover {
    background: #4b5563 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
}

.swal2-validation-message {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-top: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.swal2-actions {
    margin-top: 24px !important;
    gap: 12px !important;
}