﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Background */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/Content/images/crm-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding: 15px;
    position: relative;
}

    /* Dark overlay */
    body::before {
        content: "";
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        top: 0;
        left: 0;
        z-index: -1;
    }

/* Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 1100px;
    vertical-align: middle;
}

/* Main container */
.login-container {
    /*width: 100%;*/
    border-radius: 16px;
    /*background: rgba(255,255,255,0.95);*/
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    padding: 30px;
    background: rgba(255,255,255,0.6) !important;
    overflow: hidden;
    /*max-width: 960px;*/
}

/* Left image */
.login-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-left img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        border-radius: 12px;
    }

/* Login box */
.login-box {
    padding: 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

    .logo img {
        max-width: 140px;
    }

/* Title */
.login-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Input */
.form-control {
    border-radius: 8px;
    height: 45px;
    font-size: 15px;
}

/* Input icon */
.input-group-text {
    background: #f1f1f1;
    border-radius: 8px 0 0 8px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    height: 48px;
    font-weight: 600;
}

/* Error */
.error-text {
    color: red;
    text-align: center;
}

/* OTP timer */
#otpTimerBox {
    font-size: 14px;
}

/* ---------- Mobile View ---------- */
@media (max-width: 768px) {

    body {
        align-items: flex-start;
        padding-top: 20px;
    }

    .login-container {
        padding: 20px;
    }

    .login-left img {
        max-height: 350px;
    }

    .logo img {
        max-width: 120px;
    }

    .form-control {
        height: 42px;
        font-size: 14px;
    }

    .btn {
        height: 45px;
        font-size: 15px;
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {

    .login-container {
        padding: 15px;
    }

    .login-left img {
        max-height: 300px;
    }

    .login-title {
        font-size: 18px;
    }
}

.footer {
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    width: 100%;
    color:#ff6a00;
}