/* RC Employee Portal — Frontend Styles */

.rc-ep-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.rc-ep-wrap *,
.rc-ep-wrap *::before,
.rc-ep-wrap *::after {
    box-sizing: border-box;
}

/* Card */
.rc-ep-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

/* Logo */
.rc-ep-logo {
    margin-bottom: 12px;
}

.rc-ep-logo img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Title */
.rc-ep-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* Description (forgot pw) */
.rc-ep-description {
    font-size: 14px;
    color: #666;
    margin: -4px 0 16px;
    line-height: 1.55;
    text-align: center;
}

/* Form */
.rc-ep-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Field */
.rc-ep-field {
    position: relative;
    width: 100%;
}

.rc-ep-field input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.rc-ep-field input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.rc-ep-field input:focus {
    border-color: var(--rc-btn-bg, #ED8E7C);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc-btn-bg, #ED8E7C) 15%, transparent);
}

/* Password toggle */
.rc-ep-field--pw input {
    padding-right: 44px;
}

.rc-ep-toggle-pw {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    background: none;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    cursor: pointer;
    padding: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    transition: color 0.2s, background 0.15s;
}

.rc-ep-toggle-pw:hover {
    color: #555;
    background: #f9f9f9;
}

.rc-eye {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

/* Button */
.rc-ep-btn {
    width: 100%;
    background: var(--rc-btn-bg, #ED8E7C);
    color: var(--rc-btn-color, #ffffff);
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    margin-top: 2px;
    line-height: 1;
}

.rc-ep-wrap .rc-ep-btn:hover,
.rc-ep-wrap .rc-ep-btn:focus,
.rc-ep-wrap .rc-ep-btn:active {
    background: var(--rc-btn-bg, #ED8E7C) !important;
    color: var(--rc-btn-color, #ffffff) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
    filter: none !important;
    opacity: 1 !important;
}

.rc-ep-btn:active {
    transform: scale(0.985);
}

.rc-ep-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.rc-ep-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes rc-spin {
    to { transform: rotate(360deg); }
}

/* Links */
.rc-ep-links {
    text-align: left;
    margin-top: 0;
}

.rc-ep-link {
    font-size: 13px;
    color: var(--rc-link-color, #ED8E7C);
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 500;
}

.rc-ep-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Message box */
.rc-ep-message {
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 13.5px;
    text-align: left;
    line-height: 1.45;
    font-weight: 500;
}

.rc-ep-message.rc-ep-success {
    background: #f0faf4;
    color: #2d7a4f;
    border: 1px solid #b6e4ca;
}

.rc-ep-message.rc-ep-error {
    background: #fff5f5;
    color: #c0392b;
    border: 1px solid #f5c0bc;
}

/* Responsive */
@media (max-width: 480px) {
    .rc-ep-card {
        padding: 28px 20px 22px;
        border-radius: 14px;
    }
    .rc-ep-title {
        font-size: 18px;
    }
}
