body.page-template-reg-page .reg-container,
body.page-template-login-page .login-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
}

body.page-template-reg-page .login-form-container,
body.page-template-login-page .login-form-container {
    background: rgba(26, 26, 26, 0.95) !important;
    border: 2px solid #CBB279 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin: 50px auto !important;
    min-width: 500px !important;
    max-width: 500px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}

@media (max-width: 768px) {

    body.page-template-reg-page .login-form-container,
    body.page-template-login-page .login-form-container {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

body.page-template-reg-page h1,
body.page-template-reg-page h2,
body.page-template-reg-page h3,
body.page-template-login-page h1,
body.page-template-login-page h2,
body.page-template-login-page h3 {
    color: #CBB279 !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    font-size: 28px !important;
}

body.page-template-reg-page p,
body.page-template-reg-page span,
body.page-template-reg-page label,
body.page-template-login-page p,
body.page-template-login-page span,
body.page-template-login-page label {
    color: #ffffff !important;
}

body.page-template-reg-page input[type="text"],
body.page-template-reg-page input[type="email"],
body.page-template-reg-page input[type="password"],
body.page-template-reg-page input[type="tel"],
body.page-template-reg-page input[type="number"],
body.page-template-login-page input[type="text"],
body.page-template-login-page input[type="email"],
body.page-template-login-page input[type="password"],
body.page-template-login-page input[type="tel"],
body.page-template-login-page input[type="number"] {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 2px solid #CBB279 !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    width: 100% !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
}

body.page-template-reg-page input:focus,
body.page-template-login-page input:focus {
    border-color: #D1BA83 !important;
    box-shadow: 0 0 0 4px rgba(203, 178, 121, 0.2) !important;
    outline: none !important;
    background: rgba(10, 10, 10, 0.9) !important;
}

body.page-template-reg-page button,
body.page-template-reg-page input[type="submit"],
body.page-template-login-page button,
body.page-template-login-page input[type="submit"] {
    background: linear-gradient(135deg, #CBB279, #D1BA83) !important;
    color: #0a0a0a !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
}

body.page-template-reg-page button:hover,
body.page-template-reg-page input[type="submit"]:hover,
body.page-template-login-page button:hover,
body.page-template-login-page input[type="submit"]:hover {
    background: linear-gradient(135deg, #D1BA83, #CBB279) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(203, 178, 121, 0.3) !important;
}

body.page-template-reg-page a,
body.page-template-login-page a {
    color: #CBB279 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.page-template-reg-page a:hover,
body.page-template-login-page a:hover {
    color: #D1BA83 !important;
    text-decoration: underline !important;
}

body.page-template-reg-page .error-message,
body.page-template-reg-page .errors,
body.page-template-login-page .error-message,
body.page-template-login-page .errors {
    background: rgba(248, 113, 113, 0.1) !important;
    border: 1px solid #f87171 !important;
    color: #f87171 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

body.page-template-reg-page .success-message,
body.page-template-login-page .success-message {
    background: rgba(74, 222, 128, 0.1) !important;
    border: 1px solid #4ade80 !important;
    color: #4ade80 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

body.page-template-reg-page label,
body.page-template-login-page label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #CBB279 !important;
}

body.page-template-reg-page .links-bottom-col,
body.page-template-login-page .links-bottom-col {
    text-align: center !important;
    margin-top: 30px !important;
}

body.page-template-reg-page .links-bottom-col a,
body.page-template-login-page .links-bottom-col a {
    display: inline-block !important;
    margin: 10px !important;
    padding: 10px 20px !important;
    background: rgba(203, 178, 121, 0.1) !important;
    border: 1px solid #CBB279 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

body.page-template-reg-page .links-bottom-col a:hover,
body.page-template-login-page .links-bottom-col a:hover {
    background: #CBB279 !important;
    color: #0a0a0a !important;
    transform: translateY(-1px) !important;
}

body.page-template-reg-page .captcha-label,
body.page-template-login-page .captcha-label {
    color: #CBB279 !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

body.page-template-reg-page .ast-container,
body.page-template-reg-page .site-content,
body.page-template-reg-page #content,
body.page-template-login-page .ast-container,
body.page-template-login-page .site-content,
body.page-template-login-page #content {
    background: transparent !important;
}

@media (max-width: 768px) {

    body.page-template-reg-page .login-form-container,
    body.page-template-login-page .login-form-container {
        margin: 20px !important;
        padding: 30px 20px !important;
    }

    body.page-template-reg-page h2,
    body.page-template-login-page h2 {
        font-size: 24px !important;
    }
}