﻿/* ===== CONTAINER STYLING ===== */
.MR-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 2rem;
    min-height: 80vh;
}

/* ===== CARD STYLING ===== */
.MR-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 30rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ===== HEADER STYLING ===== */
.MR-header {
    margin-bottom: 2.5rem;
}

.MR-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    letter-spacing: 1px;
}

/* ===== FORM GROUP STYLING ===== */
.MR-form-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
    border: none !important;
}

/* ===== ICON STYLING ===== */
.MR-icon {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    z-index: 2;
}

/* ===== INPUT FIELD STYLING ===== */
.MR-form-control {
    width: 100%;
    padding: 0.75rem 0 0.75rem 2.5rem;
    background-color: transparent;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s;
    /* Reset ALL borders */
    border: none !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    /* ONLY set bottom border - explicitly gray */
    border-bottom: 1px solid #ccc !important;
    /* Remove any shadows */
    box-shadow: none !important;
    /* Remove browser styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

    .MR-form-control:focus {
        border: none !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        outline: none !important;
        border-bottom: 2px solid #555 !important;
        box-shadow: none !important;
    }

    .MR-form-control::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

/* ===== SELECT STYLING ===== */
.MR-select {
    width: 100%;
    padding: 0.75rem 0 0.75rem 2.5rem;
    background-color: transparent;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s;
    /* Reset ALL borders */
    border: none !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    /* ONLY set bottom border */
    border-bottom: 1px solid #ccc !important;
    /* Remove any shadows */
    box-shadow: none !important;
    /* Styled dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    /* Custom appearance */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

    .MR-select:focus {
        outline: none !important;
        border: none !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 2px solid #555 !important;
        box-shadow: none !important;
    }

    /* ===== VALIDATION STYLES ===== */
    /* Invalid state */
    .MR-form-control.modified.invalid,
    .MR-select.modified.invalid {
        border: none !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 2px solid #dc3545 !important;
        box-shadow: none !important;
    }

    /* Valid state */
    .MR-form-control.modified.valid,
    .MR-select.modified.valid {
        border: none !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 2px solid #42b983 !important;
        box-shadow: none !important;
    }

    /* Reset single validation class styles */
    .MR-form-control.valid:not(.modified),
    .MR-form-control.invalid:not(.modified),
    .MR-select.valid:not(.modified),
    .MR-select.invalid:not(.modified) {
        border: none !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid #ccc !important;
        box-shadow: none !important;
    }

/* Target specific input types */
input[type="text"].MR-form-control,
input[type="password"].MR-form-control,
input[type="email"].MR-form-control,
select.MR-select {
    border: none !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #ccc !important;
    box-shadow: none !important;
}

/* ===== VALIDATION MESSAGE ===== */
.validation-message,
.MR-error {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    color: #dc3545;
}

/* ===== BUTTON STYLING ===== */
.MR-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #e0e0e0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 2rem;
}

    .MR-btn:hover {
        background-color: #d0d0d0;
    }

    .MR-btn:active {
        transform: translateY(2px);
    }

/* ===== LOGIN PROMPT ===== */
.MR-login-prompt {
    margin-top: 2rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

.MR-login-link {
    color: #42b983;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

    .MR-login-link:hover {
        text-decoration: underline;
    }

/* ===== ALERT MESSAGES ===== */
.MR-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
    text-align: left;
}

.MR-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
    text-align: left;
}

/* ===== RESPONSIVE STYLING ===== */
@media (max-width: 576px) {
    .MR-card {
        padding: 1.5rem;
    }

    .MR-title {
        font-size: 1.25rem;
    }
}
