﻿body {
    background-color: #f8f9fa;
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
}

/* Main Container */
.split-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Left Side - Hero Section */
.hero-side {
    flex: 1;    
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
    /*overflow: hidden;*/
}

.hero-image-placeholder p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    /*margin-bottom: 40px;*/
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 205, 210, 0.5);
    transition: all 0.3s ease;
}

.hero-features li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.15);
    border-color: var(--accent-light);
}

.hero-features span {
    font-size: 1rem;
    font-weight: 500;
}

.hero-features i {
    color: var(--primary-red);
    font-size: 1.3rem;
    width: 20px;
}

.hero-footer {
    /*margin-top: 40px;*/
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Right Side - Form Section */
.form-side {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: auto;    
}

.auth-form-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    animation: slideIn 0.8s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /*overflow: hidden;*/
    border-top: 5px solid var(--dark-red);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-header p {
    color: var(--dark-gray);
    font-size: 1.05rem;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Input Icons */
.input-icon-left {
    position: absolute;
    left: 18px;
    top: 45px;
    color: var(--medium-red);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.input-icon-right {
    position: absolute;
    right: 18px;
    top: 45px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
}

.input-icon-right:hover {
    color: var(--primary-red);
}

.form-control:focus ~ .input-icon-left,
.form-control:focus ~ .input-icon-right {
    color: var(--primary-red);
    transform: scale(1.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
    padding-left: 5px;
    font-weight: 500;
}

.success-message {
    color: var(--success-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
    padding-left: 5px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.forgot-password {
    color: var(--primary-red);
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
}

.forgot-password:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.forgot-password:hover:after {
    width: 100%;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.btn-auth:hover:not(:disabled) {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(0);
}

.btn-auth:disabled {
    background-color: var(--light-red);
    /*color: var(--dark-gray);*/
    cursor: not-allowed;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--dark-gray);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-red), transparent);
    z-index: 1;
}

.auth-divider span {
    background-color: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 600
}

.social-auth {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--accent-light);
    border-radius: 12px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.social-btn:hover {
    border-color: var(--primary-red);
    background-color: rgba(255, 235, 238, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.1);
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.linkedin i {
    color: #0077B5;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 600;
    position: relative;
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.auth-footer a:hover:after {
    width: 100%;
}

/* Back to Home */
.back-to-home {
    /*position: absolute;*/
    /* top: 30px;
    right: 30px;*/
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    z-index: 10;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    border: 1px solid var(--accent-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

    .back-to-home:hover {
        /*background: var(--accent-lighter);
    transform: translateX(-5px);*/
    }

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    animation: floatAround 20s infinite linear;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, 50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 80px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.active {
    background: var(--primary-red);
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--dark-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-container {
        max-width: 400px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-side {
        padding: 30px;
    }

    .form-side {
        padding: 40px 30px;
    }

    .hero-image-container {
        max-width: 500px;
    }

    .back-to-home {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .hero-side {
        padding: 20px;
    }

    .form-side {
        padding: 30px 20px;
    }

    .auth-form-container {
        max-width: 100%;
        padding: 20px 10px;
    }

    .hero-logo {
        margin-bottom: 30px;
    }

    .hero-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .hero-logo-text {
        font-size: 1.8rem;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-image-placeholder i {
        font-size: 3.5rem;
    }

    .hero-image-placeholder h3 {
        font-size: 1.5rem;
    }

    .hero-features li {
        padding: 12px;
    }

    .input-icon-left,
    .input-icon-right {
        top: 43px;
    }
}

.form-label i {
    margin-right: 5px;
    color: var(--primary-red);
    font-size: 16px;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.otp-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s;
}

    .otp-input.filled {
        border-color: var(--primary-red);
        background-color: var(--light-red-bg);
    }

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 2rem
}

    .hero-content::before,
    .hero-content::after {
        content: '';
        position: absolute;
        top: 0;
        width: 15%;
        height: 100%;
        background-image: radial-gradient(rgb(26 6 6 / 25%) 2px, #58050500 2px);
        background-size: 22px 22px;
        opacity: 0.6;
        pointer-events: none;
        z-index: 10;
    }

    .hero-content::before {
        left: 0;
        -webkit-mask-image: linear-gradient( to right, transparent 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 1) 100% );
    }

    .hero-content::after {
        right: 0;
        -webkit-mask-image: linear-gradient( to left, transparent 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 1) 100% );
    }

    .hero-content > * {
        position: relative;
        z-index: 2;
    }


/* Status badges */
.cert-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-carousel-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.certificates-side {
    flex: 1;
    padding: 20px;
    min-width: 0; /* Prevents flexbox items from overflowing */
}

.cert-card {
    padding: 20px;
    margin: 10px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    min-height: 400px
}

    .cert-card:hover {
        transform: translateY(-5px);
    }

/* RTL Support */
[dir="rtl"] .hero-carousel-wrapper {
    flex-direction: row-reverse;
}

/* Cards side */
.certificates-side {
    flex: 2;
    min-width: 300px;
    position: relative;
    height: 600px;
    overflow: visible;
}

.certificate-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Certificate card design - Red/Black Theme */
.cert-card {
    /* position: absolute; */
    /* width: 50%; */
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 10;
    /* border: 2px solid #e63946; */
    backdrop-filter: blur(10px);
    margin: 0 auto;
    min-height: 400px;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.25);
    z-index: 100;
    border-color: #d90429;
}

/* Card header with red theme */
.cert-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e63946 0%, #a4161a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.cert-icon i {
    color: white;
    font-size: 24px;
}

.cert-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2b2d42;
    line-height: 1.3;
}

.cert-title p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #e63946;
    font-weight: 600;
}

/* Progress bar - Red theme */
.cert-progress {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.progress-value {
    font-weight: 700;
    color: #e63946;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e63946 0%, #a4161a 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Status badges */
.cert-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-completed {
    background: linear-gradient(135deg, #2b9348 0%, #007f5f 100%);
    color: white;
}

.status-in-progress {
    background: linear-gradient(135deg, #ffd166 0%, #f8961e 100%);
    color: #2b2d42;
}

.status-pending {
    background: linear-gradient(135deg, #e63946 0%, #a4161a 100%);
    color: white;
}

.status-verified {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
}

.status-renewal {
    background: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
    color: white;
}

.carousel-item{
    /*display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;*/

}

.carousel-item img {
    width: auto;
    max-height: 400px;
    height: 400px !important;
    margin: 0 auto;
}

.carousel-item-inner {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    height: 100%;
    text-align: center;
}

/* Ensure carousel has height */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Image control */
.carousel-item-inner img {
    /*max-height: 160px;*/
    width: auto;
    object-fit: contain;
}


/* OTP Timer Box */
.otp-timer-box {
    background-color: var(--light-red-bg);
    border: 1px solid var(--accent-light);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    border-radius: 0.375rem;
}
