﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

.pm-wrap {
    background: #F5F0E8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.pm-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.pm-logo-icon {
    width: 32px;
    height: 32px;
    background: #9ACC9A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pm-logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #2C2C2A;
}

    .pm-logo-text span {
        color: #0AC200;
    }

.pm-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border: 0.5px solid #d0d0c8;
    width: 100%;
    max-width: 420px;
}

.pm-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

    .pm-tab.active {
        background: #9ACC9A;
        color: #2C2C2A;
    }

.pm-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border: 0.5px solid #d0d0c8;
}

.pm-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #2C2C2A;
    margin-bottom: 0.25rem;
}

.pm-card-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 1.5rem;
}

.pm-role-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.pm-role-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid #d0d0c8;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .pm-role-btn .role-icon {
        font-size: 20px;
    }

    .pm-role-btn.selected {
        border-color: #0AC200;
        background: #F0FAF0;
        color: #2C2C2A;
    }

.pm-label {
    font-size: 13px;
    font-weight: 500;
    color: #2C2C2A;
    margin-bottom: 6px;
    display: block;
}

.pm-input {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #d0d0c8 !important;
    font-size: 14px !important;
    color: #2C2C2A !important;
    background: #FAFAF8 !important;
    margin-bottom: 1rem !important;
    outline: none !important;
    transition: border 0.2s !important;
}

    .pm-input:focus {
        border-color: #9ACC9A;
    }

.pm-row {
    display: flex;
    gap: 10px;
}

    .pm-row .pm-field {
        flex: 1;
    }

.pm-field {
    display: flex;
    flex-direction: column;
}

.pm-btn-primary {
    width: 100%;
    padding: 12px;
    background: #0AC200;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

    .pm-btn-primary:hover {
        background: #09a800;
    }

.pm-forgot {
    text-align: right;
    font-size: 12px;
    color: #0AC200;
    cursor: pointer;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    display: block;
}

.pm-divider {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin: 1rem 0;
    position: relative;
}

    .pm-divider::before, .pm-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 42%;
        height: 0.5px;
        background: #d0d0c8;
    }

    .pm-divider::before {
        left: 0;
    }

    .pm-divider::after {
        right: 0;
    }

.pm-rule {
    background: #F0FAF0;
    border-left: 3px solid #0AC200;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #3a6b2a;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.panel {
    display: none;
}

    .panel.active {
        display: block;
    }


.text-danger{
    color:red !important;
}

.pm-alert {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    box-sizing: border-box;
}

.pm-alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}