:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f5f8fa;
    --body-color: #333;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--body-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--shadow-color);
    padding: 30px;
    width: 100%;
    max-width: 450px;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: inline-block;
    margin-bottom: .5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Modern Login Container */
.login-container {
    display: flex;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 5px 40px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 60px 40px;
    /* min-height: 100vh; */
}

@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        min-height: 45vh;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
    }

    .login-right {
        min-height: 55vh;
        padding: 30px 20px;
        order: 1;
    }
    
    .carousel-wrapper {
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 500px;
    }
    
    .slide-text h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .slide-text p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .carousel-img {
        width: auto;
        max-width: 90%;
    }
    
    .slide-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-left {
        padding: 15px;
        min-height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        order: 2;
    }

    .login-right {
        padding: 20px 15px;
        min-height: 60vh;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
    }
    
    .carousel-wrapper {
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .carousel-arrow.carousel-prev {
        left: 24px;
        top: 24%;
    }
    
    .carousel-arrow.carousel-next {
        right: 24px;
        top: 24%;
    }
    
    .slide-text h2 {
        font-size: 18px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .slide-text p {
        font-size: 13px;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .carousel-img {
        width: auto;
        max-width: 85%;
        object-fit: contain;
    }
    
    .slide-content {
        padding: 10px;
        text-align: center;
    }
    
    .slide-image {
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 180px;
    }
    
    .carousel-nav {
        bottom: 10px;
    }
    
    .carousel-dot {
        width: 25px;
        height: 3px;
    }
}

/* Carousel Section */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.slide-image {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

.carousel-img {
    max-width: 88%;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.mini-icon {
    position: absolute;
    top: 50px;
    left: 100px;
    width: 40px;
    height: 40px;
    z-index: 10;
    opacity: 0.9;
}

/* Responsive mini-icon positioning */
@media (max-width: 1024px) {
    .mini-icon {
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .mini-icon {
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .mini-icon {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 25px;
        height: 25px;
    }
}

.slide-overlay-text {
    position: absolute;
    bottom: 132px;
    left: 58%;
    transform: translateX(-50%);
    width: 90%;
    text-align: left;
    z-index: 5;
}

.slide-overlay-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    margin: 0;
    padding: 0 20px;
}

/* Responsive overlay text */
@media (max-width: 1024px) {
    .slide-overlay-text {
        left: 50%;
        width: 80%;
        bottom: 80px;
    }
    
    .slide-overlay-text h2 {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .slide-overlay-text h2 span {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {
    .slide-overlay-text {
        left: 50%;
        width: 75%;
        bottom: 60px;
    }
    
    .slide-overlay-text h2 {
        font-size: 16px;
        padding: 0 12px;
        line-height: 1.2;
    }
    
    .slide-overlay-text h2 span {
        font-size: 18px !important;
    }
    
    .slide-overlay-text label {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-top: 15px !important;
    }
}

@media (max-width: 480px) {
    .slide-overlay-text {
        left: 50%;
        width: 70%;
        bottom: 40px;
    }
    
    .slide-overlay-text h2 {
        font-size: 14px;
        padding: 0 10px;
        line-height: 1.1;
    }
    
    .slide-overlay-text h2 span {
        font-size: 16px !important;
    }
    
    .slide-overlay-text label {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 12px !important;
    }
}

.slide-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 400px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 60px;
    left: 31%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-dot {
    width: 50px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scaleX(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Clean unused visual demo styles - using real images now */

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

.brand-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 1rem;
    max-width: 400px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 100px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    border-radius: 2px;
}

.progress-step.completed:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.8);
}

.progress-step.active .progress-step-circle {
    background: #ffffff;
    color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.progress-step.completed .progress-step-circle {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.progress-step.active .progress-step-label {
    color: #ffffff;
    font-weight: 600;
}

.progress-step-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: visible;
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    text-align: left;
}

.card-subtitle {
    color: #666666;
    font-size: 16px;
    text-align: left;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Alert styles moved to /static/css/alert.css */

/* Step Forms */
.step-form {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.step-form.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #1a1a1a;
    background: white;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: errorPulse 1.5s infinite;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox */
.checkbox-group label {
    position: relative;
    padding-left: 35px;
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

/* Create a custom checkbox */
.checkbox-group label:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* On mouse-over */
.checkbox-group label:hover:before {
    border-color: #156CFE;
}

/* When the checkbox is checked */
.checkbox-group input:checked ~ label:before {
    background-color: #156CFE;
    border-color: #156CFE;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkbox-group label:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show the checkmark when checked */
.checkbox-group input:checked ~ label:after {
    opacity: 1;
}

/* Focus style */
.checkbox-group input:focus ~ label:before {
    box-shadow: 0 0 0 3px rgba(21, 108, 254, 0.3);
}

/* Error state */
.checkbox-group.error label:before {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
    animation: errorPulse 1.5s infinite;
}

/* Checkbox Text (Unused) */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    box-shadow: none;
    border: 1px solid #1a1a1a;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: none;
    box-shadow: none;
}

.btn-primary:active {
    transform: none;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Button */
.btn-error {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    transition: all 0.3s ease;
}

.btn-error:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

@keyframes errorButtonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.btn-error {
    animation: errorButtonPulse 1.5s infinite;
}

/* Success Button */
.btn-success {
    background: #10b981;
    color: white;
    box-shadow: none;
    border: 1px solid #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

/* Login Success Animation */
.login-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
}

.login-success .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.login-success .success-icon i {
    font-size: 18px;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Social Login Buttons */
.social-login {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #666666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333333;
    text-decoration: none;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.linkedin {
    color: #0077b5;
}

.separator {
    text-align: center;
    margin: 24px 0;
    color: #999999;
    font-size: 14px;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.separator span {
    background: #ffffff;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.btn-back {
    background: rgba(107, 114, 128, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 16px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(75, 85, 99, 0.9);
    transform: translateY(-1px);
}

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

/* Button Loading States */
.btn-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Button Row */
.btn-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-row .btn {
    flex: 1;
}

/* Links Section */
.links-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.links-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.links-section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Right Side Banner */
.login-banner {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05) contrast(1.1);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .login-card {
        padding: 30px 25px;
    }

    .main-page-header h1 {
        font-size: 2.2rem;
    }

    .main-page-header p {
        font-size: 1.1rem;
    }

    .progress-steps {
        margin-bottom: 25px;
    }

    .progress-step-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .progress-step-label {
        font-size: 11px;
    }

    .links-section {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

.text-policies {
    color: #156CFE;
    text-decoration: underline;
}

.text-policies:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 465px) {
    .carousel-wrapper {
        position: relative;
        width: 100%;
        height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-arrow.carousel-prev {
        left: 24px;
        top: 40%;
    }
    
    .carousel-arrow.carousel-next {
        right: 24px;
        top: 40%;
    }
} 

