/* ===================================
   KORE INVENTORY - LOGIN STYLES
   =================================== */

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1E40AF 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */
.login-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float-shape 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #10B981, #059669);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    bottom: -10%;
    right: -10%;
    animation-delay: 7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

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

/* ===================================
   LOGIN CARD
   =================================== */
.login-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

/* ===================================
   LEFT SIDE - BRANDING
   =================================== */
.login-left {
    background: linear-gradient(135deg, #1E40AF, #1e3a8a);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.logo-container-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F59E0B, #fbbf24);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.logo-container-large i {
    font-size: 3rem;
    color: white;
}

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

.features-list {
    text-align: left;
    display: inline-block;
}

.feature-item {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* ===================================
   RIGHT SIDE - FORM
   =================================== */
.login-right {
    padding: 60px 40px;
    background: white;
}

.login-form-content {
    max-width: 400px;
    margin: 0 auto;
}

/* Mobile Logo */
.logo-container-mobile {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F59E0B, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-container-mobile i {
    font-size: 2rem;
    color: white;
}

/* ===================================
   FORM CONTROLS
   =================================== */
.form-control-lg {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 0.25rem rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.form-label {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: #1E40AF;
}

.btn-toggle-password:focus {
    outline: none;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #2563eb);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

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

.btn-outline-secondary {
    border: 2px solid #e5e7eb;
    color: #6b7280;
    background: white;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* ===================================
   DIVIDER
   =================================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 15px;
}

/* ===================================
   FORM CHECK
   =================================== */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #1E40AF;
    border-color: #1E40AF;
}

.form-check-label {
    cursor: pointer;
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

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

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ===================================
   LOADING STATE
   =================================== */
.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .spinner-border {
    display: inline-block !important;
}

/* ===================================
   MODAL
   =================================== */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 24px 24px 16px;
}

.modal-body {
    padding: 16px 24px 24px;
}

.modal-title {
    font-size: 1.3rem;
}

/* ===================================
   LINKS
   =================================== */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #1e3a8a !important;
}

/* ===================================
   VALIDATION
   =================================== */
.form-control.is-invalid {
    border-color: #dc2626;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #10B981;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback,
.valid-feedback {
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991px) {
    .login-card {
        border-radius: 15px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .login-body {
        padding: 15px;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .form-control-lg {
        padding: 12px 16px;
    }
}

@media (max-width: 575px) {
    .shape {
        display: none;
    }
    
    .login-card {
        border-radius: 12px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.form-control:focus,
.btn:focus,
.btn-toggle-password:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .login-background,
    .shape {
        display: none;
    }
}
