/* Reset and Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
}

.bodybg-myvi {
    background: url("/images/bgl.jpeg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.contents {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Container */
.custom-container {
    width: 100%;
    max-width: 900px;
    padding: 0 10px;
}

/* Login Main Card */
.login-main {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

/* Left Image Section */
.bg-image-card {
    width: 50%;
    padding: 0;
    flex-shrink: 0;
}

.bg-image-box {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: url('/images/login-DailyHR.png') no-repeat center center;
    background-size: cover;
}

/* Right Login Section */
.login {
    width: 50%;
    padding: 25px 20px !important;
    background: #ffffff;
    flex-shrink: 0;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

.logo-svg {
    max-width: 100%;
    height: auto;
}

/* Form Title */
.form-title {
    font-weight: 600;
    margin: 10px 0 20px 0;
    font-size: clamp(18px, 4vw, 22px);
    font-family: 'Lato', sans-serif;
    text-align: center;
    color: #2D2B2B;
}

/* Form Group */
.form-group {
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group-addon {
    padding: 8px 12px;
    font-size: 14px;
    background-color: rgba(8, 199, 118, 0.1) !important;
    border: 1px solid #96CECF;
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    color: #0f6d5c;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
}

.form-control {
    display: block;
    width: 100%;
    height: 40px !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    border: 1px solid #96CECF;
    font-weight: 500;
    min-width: 0;
}

    .form-control:focus {
        outline: none;
        box-shadow: none;
        border-color: #0f6d5c !important;
    }

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.mybut {
    background: #ff2b7a;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-size: clamp(14px, 2.5vw, 15px) !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    min-height: 44px;
}

    .mybut:hover {
        background: #e61f6d !important;
    }

/* Link Button */
.link-button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #0066cc !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-size: clamp(13px, 2vw, 14px) !important;
    font-family: inherit !important;
}

    .link-button:hover {
        color: #004499 !important;
        text-decoration: underline !important;
    }

.changepass {
    font-size: clamp(13px, 2vw, 14px);
    color: #0f6d5c;
    font-weight: 600;
    text-decoration: none;
}

    .changepass:hover {
        text-decoration: underline;
    }

/* Validation */
.validity {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #FFF !important;
    background-color: #F44336;
    padding: 4px 8px;
    border-radius: 4px !important;
    display: block;
    margin-top: 5px;
    word-break: break-word;
}

.validity_alert {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #FFF !important;
    background-color: #F44336;
    padding: 8px 12px;
    border-radius: 4px !important;
    display: block;
    margin-top: 10px;
    text-align: center;
    word-break: break-word;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.form-check-input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-check-label {
    font-size: clamp(13px, 2vw, 14px);
    color: #555;
}

/* Copyright */
.copyrighttext {
    text-align: center;
    margin-top: 20px;
    color: #076756;
    font-weight: 600;
    font-size: clamp(11px, 1.8vw, 14px);
    padding: 0 10px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 10px;
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .custom-container {
        max-width: 700px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .contents {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .custom-container {
        padding: 0 5px;
    }

    .login-main {
        border-radius: 20px;
        flex-direction: column;
        width: 100%;
    }

    .bg-image-card {
        display: none !important;
    }

    .login {
        width: 100% !important;
        border-radius: 20px !important;
        padding: 20px 16px !important;
    }

    .form-title {
        font-size: 18px;
        margin: 5px 0 15px 0;
    }

    .input-group-addon {
        width: 38px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .form-control {
        height: 38px !important;
        font-size: 13px;
        padding: 4px 10px;
    }

    .mybut {
        padding: 10px 15px !important;
        font-size: 14px !important;
        min-height: 40px;
    }

    .form-actions {
        gap: 10px;
        margin-top: 15px;
    }

    .validity {
        font-size: 11px;
        padding: 3px 6px;
    }

    .validity_alert {
        font-size: 12px;
        padding: 6px 10px;
    }

    .copyrighttext {
        font-size: 11px;
        margin-top: 15px;
    }

    .form-check {
        margin: 8px 0;
    }
}

/* Responsive - Small Phones */
@media (max-width: 420px) {
    .contents {
        padding: 5px;
        padding-top: 10px;
    }

    .login {
        padding: 15px 12px !important;
    }

    .form-title {
        font-size: 16px;
        margin: 5px 0 12px 0;
    }

    .input-group-addon {
        width: 34px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .form-control {
        height: 34px !important;
        font-size: 12px;
        padding: 4px 8px;
    }

    .mybut {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 36px;
    }

    .form-actions {
        gap: 8px;
        margin-top: 12px;
    }

    .link-button {
        font-size: 12px !important;
    }

    .copyrighttext {
        font-size: 10px;
        margin-top: 12px;
    }

    .form-check-label {
        font-size: 12px;
    }

    .validity {
        font-size: 10px;
        padding: 2px 5px;
    }

    .validity_alert {
        font-size: 11px;
        padding: 5px 8px;
    }
}
