/* Custom Post Access - Frontend Styles */

.cpa-wrapper {
    padding: 110px 0 40px; 
}

.cpa-login-container {
    max-width: 500px;
    margin: 0px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
}

.cpa-login-content h2,
.cpa-login-content h3,
.cpa-login-content h4 {
    margin-top: 0;
}

.cpa-wrapper h4 {
    margin: 5px 0!important;
    font-size: 18px!important;
    color: #000000!important;
}

.cpa-login-form {
    margin-top: 20px;
}

.cpa-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cpa-login-form input[type="email"],
.cpa-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    box-sizing: border-box;
}

.cpa-login-form input[type="email"]:focus,
.cpa-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
}

.cpa-login-form input[type="checkbox"] {
    margin-right: 5px;
}

.cpa-button {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cpa-button:hover {
    background: #57c0e9;
}

.cpa-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#cpa-login-extras {
    margin-bottom: 15px;
}

#cpa-login-extras label {
    font-weight: normal;
}

#cpa-login-extras a {
    color: #0073aa;
    text-decoration: none;
}

#cpa-login-extras a:hover {
    text-decoration: underline;
}

.cpa-error {
    padding: 10px;
    margin-bottom: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    color: #721c24;
}

.cpa-success {
    padding: 10px;
    margin-bottom: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    color: #155724;
}

.cpa-no-access {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    text-align: center;
}

.cpa-no-access h4 {
    margin-top: 0;
    color: #856404;
}

/* Passcode Container */
.cpa-passcode-container {
    max-width: 500px;
    margin: 0px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
}

.cpa-passcode-content h2,
.cpa-passcode-content h3,
.cpa-passcode-content h4 {
    margin-top: 0;
}

.cpa-passcode-form {
    margin-top: 20px;
}

.cpa-passcode-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cpa-passcode-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 5px;
    box-sizing: border-box;
}

.cpa-passcode-form input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
}

.cpa-button-primary {
    width: 100%;
    margin-bottom: 10px;
}

.cpa-button-secondary {
    width: 100%;
    background: #6c757d;
}

.cpa-button-secondary:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 600px) {
    .cpa-login-container,
    .cpa-passcode-container,
    .cpa-no-access {
        margin: 20px 10px;
        padding: 20px;
    }
}
