/*
 * ShipmentPlanner Login Page Styles
 * Modern black background with blue accent theme
 */

:root {
    --primary-blue: #0067f4;
    --primary-blue-hover: #0052c7;
    --primary-blue-dark: #004199;
    --accent-teal: #2bdbdc;
    --text-dark: #121212;
    --text-gray: #6c6c6c;
    --text-light: #ffffff;
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
}

/* ==========================================
   BODY & BACKGROUND
   ========================================== */

.login-page-modern {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Elements */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-blue-dark) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    50% { 
        transform: translate(30px, 30px) scale(1.1);
        opacity: 0.25;
    }
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */

.login-container-modern {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container-modern.loaded {
    opacity: 1;
    transform: translateY(0);
}

.login-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 103, 244, 0.2),
                0 0 100px rgba(43, 219, 220, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* ==========================================
   BRANDING PANEL (LEFT SIDE)
   ========================================== */

.login-branding-panel {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.login-branding-panel::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: -150px;
    right: -150px;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.brand-logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

.brand-logo span {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 40px;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.brand-subtitle {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 350px;
    margin: 0 auto;
}

.feature-highlights {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-highlights li {
    padding: 12px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.feature-highlights li i {
    color: var(--accent-teal);
    font-size: 18px;
}

/* ==========================================
   FORM PANEL (RIGHT SIDE)
   ========================================== */

.login-form-panel {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.6);
}

.login-card {
    width: 100%;
}

.login-card h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.login-card h4 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 30px;
}

.login-card hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.input-group {
    margin-bottom: 20px;
}

.input-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: auto;
}

.input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 103, 244, 0.15);
    color: var(--text-light);
    outline: none;
}

.input-group-append .input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Validation Messages */
.text-danger {
    color: #ff6b6b !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Remember Me Checkbox */
.icheck-primary label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icheck-primary input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%) !important;
    border: none !important;
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 103, 244, 0.4);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 103, 244, 0.5) !important;
}

.btn-primary:active,
.btn-primary:focus {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 103, 244, 0.4) !important;
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ==========================================
   LINKS
   ========================================== */

.form-group p {
    margin: 10px 0;
}

.form-group a,
#forgot-password,
#resend-confirmation {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group a:hover,
#forgot-password:hover,
#resend-confirmation:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-branding-panel {
        display: none;
    }

    .login-form-panel {
        padding: 40px 30px;
    }

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

@media (max-width: 576px) {
    .login-page-modern {
        padding: 10px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }

    .login-card h1 {
        font-size: 26px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }

    .circle-1,
    .circle-2,
    .circle-3 {
        opacity: 0.08;
    }
}

/* ==========================================
   ADDITIONAL OVERRIDES
   ========================================== */

/* Override AdminLTE login page styles */
.login-page-modern.login-page {
    background: var(--bg-black) !important;
}

/* Ensure validation messages are visible */
.validation-summary-errors {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    color: #ff6b6b;
    font-size: 14px;
}

/* Spinner for loading state */
.spinner-border-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* External login section styling */
.login-card h4:not(:first-of-type) {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   ALERT BOXES
   ========================================== */

.alert-success-custom,
.alert-info-custom,
.alert-danger-custom,
.alert-warning-custom {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-success-custom {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #5ce787;
}

.alert-success-custom i {
    color: #5ce787;
    font-size: 24px;
    margin-top: 2px;
}

.alert-info-custom {
    background: rgba(0, 103, 244, 0.1);
    border: 2px solid rgba(0, 103, 244, 0.3);
    color: #66b3ff;
}

.alert-info-custom i {
    color: var(--primary-blue);
    font-size: 24px;
    margin-top: 2px;
}

.alert-info-custom a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.alert-danger-custom {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff8a8a;
}

.alert-danger-custom i {
    color: #ff6b6b;
    font-size: 24px;
    margin-top: 2px;
}

.alert-warning-custom {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #ffd454;
}

.alert-warning-custom i {
    color: #ffc107;
    font-size: 24px;
    margin-top: 2px;
}

/* ==========================================
   BACK TO LOGIN LINK
   ========================================== */

.form-group .btn-primary {
    display: inline-block;
    width: auto;
    min-width: 180px;
}

/* ==========================================
   CONFIRMATION LINK
   ========================================== */

#confirm-link {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: underline;
}

#confirm-link:hover {
    color: var(--primary-blue);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

input,
button {
    transition: all 0.3s ease !important;
}
