/* ==========================================================
   RideFormz Authentication Pipeline Stylesheet
   Covers: login.php, pin_gate.php, forgot-pin.php
   ========================================================== */

/* Base Body Styles */
body.pin-body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    background-image: url('../images/fence.png');
    background-repeat: repeat;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

body.pin-body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

/* Central Card Containers (Pin Gate & Recovery) */
.pin-container, 
.recovery-container {
    position: relative;
    padding: 30px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 100%;
    max-width: 450px;
    border: 1px solid #444;
    box-sizing: border-box;
    background: #2d2d2d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Plate Graphic Overlay */
.plate-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 8px;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

/* Inner Content Wrapper */
.pin-content, 
.recovery-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Portal Logo */
.portal-logo {
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* Headings */
.pin-container h2, 
.recovery-container h2 {
    margin-bottom: 15px;
    color: #ff6600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    font-size: 20px;
}

/* Subtitles & Labels */
.sidebar-subtitle {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 20px;
}

label {
    font-size: 11px;
    color: #aaa;
    display: block;
    text-align: left;
    margin-bottom: 3px;
    font-weight: bold;
    width: 100%;
}

/* Forms & Inputs */
form {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-input, 
.input-field {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 3px;
    border: 1px solid #444;
    border-radius: 4px;
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Action Buttons */
.pin-btn, 
.recovery-btn, 
.btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.pin-btn:hover, 
.recovery-btn:hover, 
.btn:hover {
    background-color: #e55c00;
}

/* Status and Feedback Messages */
.error-msg {
    color: #ff4d4d;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.success-msg {
    color: #4bb543;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Footer Links (Forgot PIN / Return to Login) */
.forgot-link, 
.back-link {
    margin-top: 15px;
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    display: block;
}

.forgot-link:hover, 
.back-link:hover {
    color: #fff;
    text-decoration: underline;
}