﻿/********* RomDentCT - Login pages *********/
:root {
    --rd-navy: #1f2a5c;
    --rd-blue: #2196d3;
    --rd-violet: #6b74c0;
    --rd-bg: #f0f2f5;
}

body {
    min-height: 100vh;
    margin: 0px;
    background-color: var(--rd-bg);
    background-image: radial-gradient(circle at 10% 10%, rgba(33, 150, 211, .10), transparent 40%), radial-gradient(circle at 90% 90%, rgba(107, 116, 192, .12), transparent 40%);
    font-family: "segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #374151;
}

    body > form {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

.rd-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.rd-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--rd-blue);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 36px 32px 28px 32px;
}

    .rd-login-card .rd-logo {
        display: block;
        max-width: 260px;
        width: 80%;
        margin: 0 auto 10px auto;
    }

    .rd-login-card .rd-subtitle {
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: var(--rd-navy);
    }

    .rd-login-card .rd-phone {
        text-align: center;
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 24px;
    }

        .rd-login-card .rd-phone a {
            color: #6b7280;
            text-decoration: none;
        }

    .rd-login-card .input-group-text {
        background: #f8f9fb;
        color: var(--rd-navy);
        min-width: 44px;
        justify-content: center;
    }

    .rd-login-card .form-control {
        height: 46px;
        text-align: center;
    }

        .rd-login-card .form-control:focus {
            border-color: var(--rd-blue);
            box-shadow: 0 0 0 3px rgba(33, 150, 211, .15);
        }

    .rd-login-card .btn-primary {
        height: 46px;
        font-weight: 600;
        background-color: var(--rd-navy);
        border-color: var(--rd-navy);
    }

        .rd-login-card .btn-primary:hover,
        .rd-login-card .btn-primary:focus {
            background-color: var(--rd-blue);
            border-color: var(--rd-blue);
        }

    .rd-login-card .rd-link {
        display: block;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: var(--rd-violet);
        text-decoration: none;
        margin-top: 16px;
    }

        .rd-login-card .rd-link:hover {
            color: var(--rd-navy);
        }

    .rd-login-card .rd-error {
        display: block;
        text-align: center;
        font-size: 14px;
        min-height: 20px;
        margin-top: 12px;
    }

.rd-login-footer {
    text-align: center;
    padding: 14px 16px;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/********* Please wait *********/
.rd-wait {
    text-align: center;
}

    .rd-wait .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        color: var(--rd-blue);
        margin: 10px 0px 20px 0px;
    }

    .rd-wait .rd-wait-text {
        font-size: 18px;
        color: var(--rd-navy);
    }

/********* Login card : title + purpose *********/
.rd-login-card .rd-login-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-navy);
    margin: 4px 0 2px 0;
}

.rd-login-card .rd-login-purpose {
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 18px;
}

.rd-login-card .form-label {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.rd-login-card .rd-secure {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 14px;
}

/********* Footer links *********/
.rd-login-footer a {
    color: #6b7280;
    text-decoration: none;
}

    .rd-login-footer a:hover {
        color: var(--rd-navy);
        text-decoration: underline;
    }

.rd-login-footer .rd-footer-dev {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

/********* Legal pages (privacy / terms) *********/
.rd-legal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rd-legal {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--rd-blue);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    padding: 28px 32px;
    line-height: 1.7;
}

    .rd-legal .rd-legal-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
    }

        .rd-legal .rd-legal-head .rd-logo {
            width: 200px;
            height: auto;
        }

    .rd-legal .rd-legal-nav {
        font-size: 14px;
    }

    .rd-legal h1 {
        font-size: 1.6rem;
        color: var(--rd-navy);
        margin-bottom: 0;
    }

    .rd-legal h2 {
        font-size: 1.1rem;
        color: var(--rd-navy);
        margin-top: 22px;
    }

    .rd-legal a {
        color: var(--rd-blue);
    }
