﻿/* ========================================= */
/* PAGE BACKGROUND */
/* ========================================= */

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient( 135deg, #4b5563 0%, #6b7280 50%, #7c8595 100% );
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}


/* ========================================= */
/* WRAPPER */
/* ========================================= */

.portal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}


/* ========================================= */
/* CARD */
/* ========================================= */

.portal-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    animation: fadeIn 0.4s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

    .portal-card:hover {
        transform: translateY(-2px);
    }

#loginform {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

    #loginform .LoginParent,
    #loginform table,
    #loginform form {
        width: 100%;
    }

    #loginform table {
        margin: 0 auto;
        width: 100%;
        max-width: 360px;
    }

.language-switch {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
    margin: 0 auto 24px auto;
}

/* ========================================= */
/* HEADER */
/* ========================================= */

.portal-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    margin-top: 32px;
}

.brand-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.portal-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
}

.portal-title {
    font-size: 32px;
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.portal-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-top: 10px;
    line-height: 1.5;
}


/* ========================================= */
/* LANGUAGE */
/* ========================================= */

.language-switch {
    margin-bottom: 24px;
    text-align: center;
}

.language-radio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px; /* controlled spacing */
}

    /* Each option = one clean unit */
    .language-radio span {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0; /* IMPORTANT: removes ASP.NET default spacing */
    }

    /* Radio itself */
    .language-radio input[type="radio"] {
        margin: 0;
    }

    /* Label */
    .language-radio label {
        margin: 0;
        padding: 0;
        cursor: pointer;
    }

/* ========================================= */
/* FORMS */
/* ========================================= */

.form-group {
    margin-bottom: 18px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 18px auto;
}

.modern-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #b8c4d6;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    text-align: left;
}

    .modern-input:focus {
        outline: none;
        border-color: #0f766e;
        box-shadow: 0 0 0 5px rgba(15,118,110,0.18);
    }

    .modern-input::placeholder {
        color: #64748b;
    }


/* ========================================= */
/* VALIDATION */
/* ========================================= */

.validator {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.error-message {
    color: #dc2626;
    text-align: center;
    font-size: 14px;
    margin-bottom: 18px;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

/*CSS Classes For Design Modal*/
.modalBackground {
    visibility: visible;
    background-color: white;
    border: 1px solid #333;
    border-radius: 10px;
}

.modalPopup {
    position: fixed;
    text-align: center;
    visibility: visible;
    background-color: #fff;
    width: 600px;
    padding: 10px;
    z-index: 2000;
    margin: 0px;
    border: 8px solid rgb(142, 155, 188);
    border: 8px solid rgba(142, 155, 188, .5);
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
    border-radius: 10px;
}

.ModalForm {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

#btnSave, #btnCancel {
    display: inline-block;
}


/* ========================================= */
/* TERMS */
/* ========================================= */

.terms-row {
    margin-bottom: 24px;
    text-align: left;
}

.terms-checkbox {
    font-size: 14px;
}


/* ========================================= */
/* BUTTONS */
/* ========================================= */

.button-row {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.primary-button {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #0f766e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15,118,110,0.25);
    max-width: 360px;
}

    .primary-button:hover {
        background: #115e59;
        transform: translateY(-2px);
    }

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.portal-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portal-btn-primary {
    background: #0f766e;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}

    .portal-btn-primary:hover {
        background: #115e59;
        transform: translateY(-2px);
    }

.portal-btn-secondary {
    background: transparent;
    color: #0f766e;
    border: 2px solid #0f766e;
    box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}

    .portal-btn-secondary:hover {
        background: rgba(15,118,110,0.08);
    }

    .portal-btn-secondary::before {
        content: "← ";
    }
/* ========================================= */
/* LINKS */
/* ========================================= */

.portal-links {
    display: block;
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.link-row, .signup-row {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    min-height: 20px;
}

.portal-links a {
    display: inline-block;
    color: #0f766e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .portal-links a:hover {
        text-decoration: underline;
        color: #115e59;
    }


/* ========================================= */
/* FOOTER */
/* ========================================= */

.portal-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.ssl-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

    .ssl-row img {
        opacity: 0.9;
        transform: scale(0.9);
    }

.copyright {
    font-size: 12px;
    color: #64748b;
}


/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 600px) {

    .portal-card {
        width: 100%;
        padding: 24px;
        border-radius: 14px;
    }

    #loginform {
        max-width: 100%;
    }

    .portal-logo {
        width: 120px;
    }

    .portal-title {
        font-size: 28px;
    }

    .brand-row {
        flex-direction: column;
        text-align: center;
    }

    .brand-text {
        text-align: center;
    }

}


/* ========================================= */
/* ANIMATION */
/* ========================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
