/* Automation Login Page Theme CSS */
/* ---------------------------------------------------
   Main container and layout
--------------------------------------------------- */
body {
    background: linear-gradient(135deg, #0e1a2b 0%, #1e3c72 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-container {
    max-width: 420px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(30, 60, 114, 0.16);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 84px;
    margin-bottom: 22px;
    animation: logo-spin 2.5s linear infinite;
}

@keyframes logo-spin {
    0% { transform: rotateY(0deg);}
    100% { transform: rotateY(360deg);}
}

.login-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.login-subtitle {
    font-size: 1.1rem;
    color: #314e7c;
    margin-bottom: 34px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-label {
    font-size: 1.02rem;
    margin-bottom: 7px;
    color: #253553;
    display: block;
}

.input-field {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #1e3c72;
    font-size: 1rem;
    background: rgba(255,255,255,0.89);
    color: #253553;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #3c6ee0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(60, 110, 224, 0.10);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3c72;
    font-size: 1.18rem;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.12rem;
    color: #3c6ee0;
}

.login-btn {
    width: 100%;
    background: linear-gradient(90deg, #1e3c72 40%, #3c6ee0 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 0;
    font-size: 1.14rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 16px 0 rgba(30, 60, 114, 0.09);
    transition: background 0.2s;
}

.login-btn:hover, .login-btn:focus {
    background: linear-gradient(90deg, #3c6ee0 40%, #1e3c72 100%);
}

.forgot-password-link {
    text-align: right;
    display: block;
    margin-top: 8px;
    font-size: 0.98rem;
    color: #3c6ee0;
    text-decoration: none;
    transition: color 0.15s;
}

.forgot-password-link:hover {
    color: #1e3c72;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.checkbox-input {
    accent-color: #3c6ee0;
    width: 18px;
    height: 18px;
}

.checkbox-label {
    font-size: 0.98rem;
    color: #253553;
}

/* ---------------------------------------------------
   Automation Icon Animations
--------------------------------------------------- */
.automation-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    animation: automation-move 2.8s infinite cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes automation-move {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-12px);}
}

.automation-gear {
    animation: gear-spin 3s linear infinite;
}

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

/* ---------------------------------------------------
   Responsive Design
--------------------------------------------------- */
@media (max-width: 600px) {
    .login-container {
        padding: 28px 12px;
        margin: 32px 8px;
    }
    .login-title {
        font-size: 1.5rem;
    }
    .login-subtitle {
        font-size: 0.98rem;
    }
}

/* ---------------------------------------------------
   Error and Success Messages
--------------------------------------------------- */
.form-message {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 18px;
    padding: 8px 0;
    border-radius: 6px;
}

.form-message.error {
    background: #ffeaea;
    color: #d0312d;
    border: 1px solid #d0312d;
}

.form-message.success {
    background: #eaffea;
    color: #2dd031;
    border: 1px solid #2dd031;
}

/* ---------------------------------------------------
   Social Login Section
--------------------------------------------------- */
.social-login {
    margin: 32px 0 0 0;
    width: 100%;
    text-align: center;
}

.social-login-title {
    font-size: 1rem;
    color: #253553;
    margin-bottom: 18px;
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-btn {
    background: #fff;
    border: 1.5px solid #3c6ee0;
    border-radius: 7px;
    color: #1e3c72;
    font-size: 1.08rem;
    padding: 10px 26px;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(60, 110, 224, 0.09);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn:hover, .social-btn:focus {
    background: #3c6ee0;
    color: #fff;
}

.social-icon {
    font-size: 1.22rem;
}

/* ---------------------------------------------------
   Automation Effects
--------------------------------------------------- */
.automation-flow {
    margin: 24px 0 0 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.automation-step {
    width: 38px;
    height: 38px;
    background: #1e3c72;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px 0 rgba(30, 60, 114, 0.09);
    position: relative;
}

.automation-step.active {
    background: #3c6ee0;
    color: #fff;
    box-shadow: 0 4px 12px 0 rgba(60, 110, 224, 0.15);
}

.automation-arrow {
    width: 38px;
    height: 6px;
    background: linear-gradient(90deg, #1e3c72 0%, #3c6ee0 100%);
    border-radius: 3px;
    margin: 0 2px;
}

.automation-step-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.79rem;
    color: #314e7c;
    width: max-content;
    white-space: nowrap;
}

/* ---------------------------------------------------
   Automation Loader
--------------------------------------------------- */
.automation-loader {
    width: 48px;
    height: 48px;
    border: 4px solid #eaffea;
    border-top: 4px solid #3c6ee0;
    border-radius: 50%;
    animation: loader-spin 1.2s linear infinite;
    margin: 18px auto;
}

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

/* ---------------------------------------------------
   Accessibility and Focus
--------------------------------------------------- */
input:focus-visible, button:focus-visible, .social-btn:focus-visible {
    outline: 2px solid #3c6ee0;
    outline-offset: 2px;
}

input:disabled, button:disabled, .social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------------------------------------------
   Custom Scrollbar
--------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    background: #eaffea;
}
::-webkit-scrollbar-thumb {
    background: #3c6ee0;
    border-radius: 5px;
}

/* ---------------------------------------------------
   Animation for Successful Login
--------------------------------------------------- */
.success-checkmark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eaffea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto;
    animation: checkmark-scale 0.5s ease-in;
}

@keyframes checkmark-scale {
    0% { transform: scale(0);}
    100% { transform: scale(1);}
}

.checkmark-icon {
    color: #2dd031;
    font-size: 2rem;
    animation: checkmark-bounce 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes checkmark-bounce {
    0% { transform: scale(0.5);}
    60% { transform: scale(1.2);}
    100% { transform: scale(1);}
}

/* ---------------------------------------------------
   Tab Navigation (for future automation features)
--------------------------------------------------- */
.tab-nav {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    justify-content: center;
}

.tab-btn {
    background: #f9fafd;
    color: #1e3c72;
    border-radius: 7px 7px 0 0;
    padding: 9px 24px;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 1.07rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn.active, .tab-btn:focus {
    background: #eaffea;
    color: #3c6ee0;
    border-bottom: 2px solid #3c6ee0;
}

/* ---------------------------------------------------
   Tooltip for Automation Info
--------------------------------------------------- */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background: #314e7c;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.98rem;
    min-width: 120px;
}

.tooltip:hover .tooltiptext, .tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #314e7c transparent transparent transparent;
}

/* ---------------------------------------------------
   Automation Progress Bar
--------------------------------------------------- */
.automation-progress-bar {
    width: 100%;
    height: 7px;
    background: #eaffea;
    border-radius: 7px;
    margin-top: 20px;
    overflow: hidden;
}

.automation-progress {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 10%, #3c6ee0 80%);
    width: 0;
    border-radius: 7px;
    transition: width 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}

.automation-progress.complete {
    width: 100%;
}

/* ---------------------------------------------------
   Animation for Automation Progress
--------------------------------------------------- */
@keyframes progress-animate {
    0% { width: 0;}
    100% { width: 100%;}
}

/* ---------------------------------------------------
   Automation Card Style
--------------------------------------------------- */
.automation-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 2px 10px 0 rgba(30, 60, 114, 0.09);
    padding: 20px 22px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-left: 4px solid #3c6ee0;
    transition: box-shadow 0.2s;
}

.automation-card:hover {
    box-shadow: 0 4px 16px 0 rgba(60, 110, 224, 0.18);
}

/* ---------------------------------------------------
   Automation Timeline (for login automation steps)
--------------------------------------------------- */
.automation-timeline {
    position: relative;
    margin: 28px 0;
    padding-left: 38px;
}

.automation-timeline::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1e3c72, #3c6ee0);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -2px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #3c6ee0;
    border-radius: 50%;
    border: 3px solid #eaffea;
    box-shadow: 0 2px 8px 0 rgba(60, 110, 224, 0.11);
}

.timeline-content {
    padding: 8px 0 0 24px;
    font-size: 1.02rem;
    color: #253553;
}

/* ---------------------------------------------------
   Automation Badge
--------------------------------------------------- */
.automation-badge {
    background: #3c6ee0;
    color: #fff;
    border-radius: 14px;
    padding: 4px 14px;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-top: 7px;
}

/* ---------------------------------------------------
   Automation Alert Banner
--------------------------------------------------- */
.automation-alert {
    background: #ffeaea;
    color: #d0312d;
    border-left: 5px solid #d0312d;
    border-radius: 7px;
    padding: 10px 22px;
    font-size: 1.01rem;
    margin-bottom: 18px;
    animation: alert-slidein 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes alert-slidein {
    0% { transform: translateY(-30px); opacity: 0;}
    100% { transform: translateY(0); opacity: 1;}
}

/* ---------------------------------------------------
   Automation Success Banner
--------------------------------------------------- */
.automation-success {
    background: #eaffea;
    color: #2dd031;
    border-left: 5px solid #2dd031;
    border-radius: 7px;
    padding: 10px 22px;
    font-size: 1.01rem;
    margin-bottom: 18px;
    animation: success-slidein 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes success-slidein {
    0% { transform: translateY(-30px); opacity: 0;}
    100% { transform: translateY(0); opacity: 1;}
}

/* ---------------------------------------------------
   Automation Avatar
--------------------------------------------------- */
.automation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3c6ee0;
    box-shadow: 0 2px 8px 0 rgba(60, 110, 224, 0.07);
    margin-bottom: 12px;
}

/* ---------------------------------------------------
   Automation Settings Panel
--------------------------------------------------- */
.automation-settings {
    background: #f9fafd;
    border-radius: 13px;
    box-shadow: 0 2px 8px 0 rgba(60, 110, 224, 0.07);
    padding: 22px 20px;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 9px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-label {
    font-size: 1rem;
    color: #253553;
    flex: 1;
}

.settings-toggle {
    width: 38px;
    height: 22px;
    background: #eaffea;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-toggle.active {
    background: #3c6ee0;
}

.settings-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}

.settings-toggle.active .settings-toggle-knob {
    left: 18px;
}

/* ---------------------------------------------------
   Automation Notification
--------------------------------------------------- */
.automation-notification {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #eaffea;
    color: #1e3c72;
    padding: 13px 32px;
    border-radius: 10px;
    box-shadow: 0 4px 16px 0 rgba(60, 110, 224, 0.18);
    font-size: 1.08rem;
    animation: notification-slidein 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    z-index: 9999;
}

@keyframes notification-slidein {
    0% { transform: translateY(44px); opacity: 0;}
    100% { transform: translateY(0); opacity: 1;}
}

/* ---------------------------------------------------
   Footer Automation Info
--------------------------------------------------- */
.footer-info {
    text-align: center;
    margin-top: 48px;
    color: #253553;
    font-size: 1rem;
    opacity: 0.62;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------
   Automation Shadow Variants
--------------------------------------------------- */
.shadow-sm {
    box-shadow: 0 1px 4px 0 rgba(60, 110, 224, 0.06);
}
.shadow-md {
    box-shadow: 0 2px 8px 0 rgba(60, 110, 224, 0.13);
}
.shadow-lg {
    box-shadow: 0 4px 16px 0 rgba(30, 60, 114, 0.21);
}

/* ---------------------------------------------------
   Custom Colors for Automation Tags
--------------------------------------------------- */
.tag-blue {
    background: #3c6ee0;
    color: #fff;
}
.tag-green {
    background: #2dd031;
    color: #fff;
}
.tag-orange {
    background: #ff9800;
    color: #fff;
}
.tag-red {
    background: #d0312d;
    color: #fff;
}

/* ---------------------------------------------------
   Automation Modal
--------------------------------------------------- */
.automation-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 60, 114, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.automation-modal-content {
    background: #fff;
    border-radius: 13px;
    padding: 32px 38px;
    box-shadow: 0 8px 32px 0 rgba(30, 60, 114, 0.17);
    min-width: 320px;
    max-width: 90vw;
    position: relative;
}

.automation-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #1e3c72;
    cursor: pointer;
    transition: color 0.2s;
}

.automation-modal-close:hover {
    color: #d0312d;
}

/* ---------------------------------------------------
   Miscellaneous Utility Classes
--------------------------------------------------- */
.mr-1 { margin-right: 8px; }
.mr-2 { margin-right: 16px; }
.ml-1 { margin-left: 8px; }
.ml-2 { margin-left: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.bold { font-weight: 600; }
.upper { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.rounded { border-radius: 13px; }
.hide { display: none !important; }
.show { display: block !important; }

/* ---------------------------------------------------
   End of Automation Login Page CSS Theme
   (600 lines)
--------------------------------------------------- */