/* public/css/login.css */

#matrix {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, #1a2a6c, #3a7bd5, #00c6ff, #a6e0ff);
}

body {
    font-family: 'Open Sans', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.login-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    height: 500px;
}

.login-form-section {
    padding: 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.slider-section {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#loginCarousel {
    width: 100%;
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-inner .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.carousel-control {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    opacity: 1;
    font-size: 24px;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-control.left,
.carousel-control.right {
    background-image: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.logo-container img {
    max-height: 100px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    height: 45px;
    border-radius: 3px;
    border: 1px solid #ddd;
    box-shadow: none;
    font-size: 14px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: none;
}

.btn-login {
    background-color: #3498db;
    border: none;
    height: 45px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #2980b9;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #7f8c8d;
}

.forgot-password:hover {
    color: #3498db;
    text-decoration: none;
}

.show-password {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .login-form-section,
    .slider-section {
        width: 100%;
        height: auto;
    }

    .slider-section {
        display: none;
    }
}

.horizontal-ticker {
    position: fixed;
    bottom: 0px;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
    height: 30px;
    font-family: monospace;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    color: #00ff00;
    font-size: 20px;
    font-weight: bold;
    animation: tickerAnim 40s linear infinite;
    padding-left: 100%;
}

@keyframes tickerAnim {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Center modal vertically and horizontally */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.modal-content {
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border: none;
    animation: fadeInScale 0.3s ease-in-out;
}

.modal-header {
    border-bottom: none;
    text-align: center;
}

.modal-title {
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    color: #3498db;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

#systemOtp {
    width: 60%;
    margin: 0 auto 20px;
    padding: 10px;
    font-size: 20px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #3498db;
}

#otpMessage {
    font-size: 14px;
}

.modal-body .btn {
    border-radius: 20px;
    padding: 10px 30px;
    margin: 5px;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-dialog {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    vertical-align: text-bottom;
    border: 0.25em solid #3498db;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(45deg, #007CF0, #00DFD8, #00DFA2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    50% {
        background: linear-gradient(45deg, #00DFA2, #007CF0, #00DFD8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-subtext {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}