/* Warehouse Portal - Premium Full Background Login Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Full Background Slideshow */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 4s ease-in-out;
    animation: slideShow 25s infinite;
    transform: scale(1.02);
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

.slide:nth-child(5) {
    animation-delay: 20s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0;
        transform: scale(1.01);
    }
    100% {
        opacity: 0;
        transform: scale(1.02);
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(30, 58, 138, 0.65) 50%,
        rgba(15, 23, 42, 0.75) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar but keep functionality */
.main-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
    margin: auto;
}

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

.login-content {
    width: 100%;
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 24px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: white;
}

.brand-icon svg {
    width: 32px;
    height: 32px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.welcome-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Login Card - Glassmorphism */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}


/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label svg {
    color: #2563eb;
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.form-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Password Header */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.password-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.password-toggle .icon-hide {
    display: none;
}

.password-toggle.is-visible .icon-hide {
    display: inline-block;
}

.password-toggle.is-visible .icon-show {
    display: none;
}

.toggle-text {
    font-size: 13px;
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: -4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.remember-me input:checked + .checkmark {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
}

.remember-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.forgot-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(37, 99, 235, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.login-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.6s ease;
}

.login-btn:hover:not(:disabled)::before {
    left: 100%;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 28px rgba(37, 99, 235, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.login-btn svg {
    position: relative;
    z-index: 1;
}

/* Signup Section */
.signup-section {
    text-align: center;
    margin-top: 8px;
}

.signup-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.signup-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Message Container */
.message-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

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

.message-content {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;
}

.message-content.success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.message-content.error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 16px;
    }

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

    .welcome-subtitle {
        font-size: 14px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .brand-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
    }

    .brand-icon svg {
        width: 28px;
        height: 28px;
    }

    .brand-section {
        margin-bottom: 28px;
    }

    .login-form {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 12px;
    }

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

    .welcome-subtitle {
        font-size: 13px;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .brand-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .brand-icon svg {
        width: 24px;
        height: 24px;
    }

    .brand-section {
        margin-bottom: 24px;
    }

    .login-form {
        gap: 16px;
    }
}

input:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
