﻿/* ========================= */
/* RESET */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= */
/* PAGE */
/* ========================= */
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================= */
/* LAYOUT */
/* ========================= */
.login-container {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 0 15px;
}

.login-form-wrapper {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}

/* ========================= */
/* HEADER */
/* ========================= */
.login-subheader {
    background-color: #f9f9f9;
    color: #555;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

/* ========================= */
/* FORM */
/* ========================= */
.login-form-content {
    padding: 25px;
}

.form-group {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    align-items: flex-start;
}

    .form-group.full-width {
        grid-template-columns: 1fr;
    }

.form-input-wrapper {
    width: 100%;
    display: block;
}

.otp-input-wrapper {
    min-width: 120px;
}

/* ========================= */
/* LABELS */
/* ========================= */
.form-label {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    display: block;
    padding-top: 2px;
    line-height: 1.4;
}

    .form-label.required::after {
        content: " *";
        color: #d32f2f;
    }

/* ========================= */
/* INPUTS */
/* ========================= */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    display: block;
    box-sizing: border-box;
}

    .form-control:focus {
        outline: none;
        border-color: #5a7fa0;
        box-shadow: 0 0 0 2px rgba(90, 127, 160, 0.1);
    }

    .form-control::placeholder {
        color: #999;
    }

/* ========================= */
/* DROPDOWN */
/* ========================= */
.dropdown-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    display: block;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .dropdown-control:focus {
        outline: none;
        border-color: #5a7fa0;
        box-shadow: 0 0 0 2px rgba(90, 127, 160, 0.1);
    }

/* ========================= */
/* OTP ROW - PROPER GRID */
/* ========================= */
.otp-row {
    display: grid;
    grid-template-columns: 140px 1fr auto auto;
    gap: 10px;
    align-items: center;
}

    .otp-row .form-input-wrapper {
        width: 100%;
    }

    .otp-row .form-control {
        width: 100%;
        min-width: 0;
    }

/* ========================= */
/* BUTTONS - ASP.NET FIX */
/* ========================= */
.btn {
    border: none !important;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    padding: 10px 10px !important;
    line-height: 1 !important;
    height: auto !important;
    display: inline-block !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    background-clip: padding-box;
    vertical-align: middle;
}

    .btn:focus {
        outline: none !important;
    }

    .btn:active {
        transform: none;
    }

/* Info Buttons (Generate OTP / Resend OTP) */
.btn-info {
    background-color: #5dade2;
    color: white;
    font-size: 10px;
    min-width: 80px;
}

    .btn-info:hover {
        background-color: #4a9fd8 !important;
    }

    .btn-info:active {
        background-color: #3a8cc8 !important;
    }

/* Success Button (Login) */
.btn-success {
    background-color: #52c41a !important;
    color: white !important;
    width: 150px;
    padding: 10px 16px !important;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

    .btn-success:hover {
        background-color: #45a311 !important;
    }

    .btn-success:active {
        background-color: #389e0d !important;
    }

/* ========================= */
/* MESSAGE */
/* ========================= */
.error-message {
    color: #d32f2f;
    font-size: 13px;
    display: block;
    padding: 5px 0;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .otp-row {
        grid-template-columns: 1fr;
    }

    .login-form-wrapper {
        width: 100%;
    }

    .login-form-content {
        padding: 20px;
        width : 25%
    }

    .form-label {
        font-weight: 600;
        margin-bottom: 5px;
    }

    .btn-success {
        width: 100% !important;
    }

    .btn-info {
        width: 100%;
    }

    .otp-row .btn {
        width: 100%;
    }
}
