﻿* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    margin-bottom: 60px;
    background-color: blueviolet;
}

/* =========================
   MODAL OVERLAY
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}

.page-title {
    font-size: 20px;
}

/* =========================
   REGISTER CARD
========================= */

.register-card {
    width: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    max-height: 90vh;
    overflow-y: auto;
}

/* =========================
   CLOSE BUTTON
========================= */

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
}

/* =========================
   TEXT
========================= */

.register-card h1 {
    text-align: center;
    margin-bottom: 5px;
    color: #25324B;
}

.subtitle {
    text-align: center;
    color: #7A7A7A;
    margin-bottom: 25px;
}

/* Form Labels */

.register-card label:not(.terms-label) {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* =========================
   INPUTS
========================= */

.register-card input:not([type="checkbox"]) {
    width: 100%;
    padding: 14px;
    border: 1px solid #D6D6D6;
    border-radius: 10px;
    font-size: 14px;
}

/* =========================
   ROLE SELECTOR
========================= */

.role-selector {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.role-btn {
    flex: 1 1 0;
    width: 100%;
    border: 2px solid #DDD;
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
}

    .role-btn.active {
        border-color: #7C3AED;
        background: #F4EEFF;
        color: #7C3AED;
    }

/* =========================
   PASSWORD
========================= */

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 50px;
    }

#ConfirmPassword {
    margin-top: 7px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

.signup-btn {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #7C3AED;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

    .signup-btn:hover {
        background: #6D28D9;
    }

.signin-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}

    .signin-link:hover {
        text-decoration: underline;
    }

/* =========================
   TERMS & PRIVACY
========================= */

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
}

.terms-checkbox {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-label {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

    .terms-label a {
        color: #7C3AED;
        text-decoration: none;
        font-weight: 600;
    }

        .terms-label a:hover {
            text-decoration: underline;
        }

/* =========================
   REGISTER ERROR
========================= */

.register-error {
    display: none;
    background: #FFE6E6;
    color: #B00020;
    border: 1px solid #FFB3B3;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
}

/* =========================
   VALIDATION
========================= */

.text-danger {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #DC2626;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .register-card {
        width: 100%;
        border-radius: 15px;
        padding: 25px;
    }

    .role-selector {
        flex-direction: column;
    }
}