/* MingZhi-inspired Modern Login CSS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f1ff; /* Light lavender background like MingZhi site */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Decorative elements to match MingZhi page */
body::before {
    content: '';
    position: fixed;
    width: 30px;
    height: 30px;
    top: 20%;
    left: 15%;
    background-color: #ffcc66;
    opacity: 0.6;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(25deg);
    z-index: -1;
}

/* Decorative dots and shapes */
.decoration-1 {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #ad8aff;
    border-radius: 50%;
    top: 15%;
    left: 25%;
    opacity: 0.5;
    z-index: -1;
}

.decoration-2 {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #ad8aff;
    border-radius: 50%;
    top: 30%;
    right: 20%;
    opacity: 0.5;
    z-index: -1;
}

.decoration-3 {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: #ad8aff;
    border-radius: 50%;
    top: 50%;
    right: 45%;
    opacity: 0.3;
    z-index: -1;
}

.decoration-4 {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: #ad8aff; 
    border-radius: 50%;
    top: 45%;
    left: 35%;
    opacity: 0.4;
    z-index: -1;
}

.decoration-5 {
    position: fixed;
    width: 5px;
    height: 5px;
    background-color: #ad8aff;
    border-radius: 50%;
    top: 65%;
    right: 30%;
    opacity: 0.3;
    z-index: -1;
}

/* Curved line decorations at bottom */
.curve-left {
    position: fixed;
    width: 150px;
    height: 450px;
    border-radius: 50%;
    bottom: -350px;
    left: -80px;
    border: 10px solid #00ccaa;
    opacity: 0.5;
    z-index: -1;
}

.curve-right {
    position: fixed;
    width: 150px;
    height: 450px;
    border-radius: 50%;
    bottom: -350px;
    right: -80px;
    border: 10px solid #ffaa44;
    opacity: 0.5;
    z-index: -1;
}

/* Main container styles */
#logreg-forms {
    width: 380px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}

/* Form styling */
#logreg-forms form {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Form controls */
.form-control {
    background-color: #f7f8fc;
    border: 1px solid #eaecf4;
    border-radius: 12px !important;
    padding: 15px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    height: auto;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #ad8aff;
    box-shadow: 0 0 0 3px rgba(173, 138, 255, 0.1);
    outline: none;
    z-index: 1;
}

/* Button styling */
.btn {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

.btn-primary {
    background: linear-gradient(135deg, #aa88ff 0%, #bd9dff 100%);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #9977ee 0%, #ac8cee 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #aa88ff 0%, #bd9dff 100%);
    border: none;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #9977ee 0%, #ac8cee 100%);
    border: none;
}

/* Social login buttons - Google only with white background */
.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.social-btn {
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 10px;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

/* Hide Facebook button */
.facebook-btn {
    display: none;
}

/* Google button styling to match the modal */
.google-btn {
    background-color: #ffffff;
    border: 1px solid #e1e5ef;
    color: #333;
}

.google-btn:hover {
    background-color: #f8f9fa;
}

.google-btn i {
    color: #DB4437;
    margin-right: 8px;
}

.google-btn img {
    height: 18px;
    margin-right: 8px;
}

.social-btn span {
    white-space: nowrap;
}

/* Text styling with elegant dividers */
p {
    text-align: center;
    margin: 20px 0;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

p::before,
p::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #eaecf4;
    margin: 0 10px;
}

/* Links */
#logreg-forms a {
    display: block;
    padding-top: 10px;
    color: #7057d2;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: color 0.2s ease;
}

#logreg-forms a:hover {
    color: #9b73fe;
}

hr {
    margin: 25px 0;
    border: none;
    height: 1px;
    background-color: #eaecf4;
}

/* Hide reset and signup forms initially */
#logreg-forms .form-reset,
#logreg-forms .form-signup {
    display: none;
}

/* Phone input section */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Hide phone authentication sections for more minimalism */
#inputPhone, #phoneloginbtn, #inputOtp, #verifyotp {
    display: none;
}

/* Form sections for signup */
#logreg-forms .form-signup .social-login {
    width: 100% !important;
    margin: 0 0 20px 0;
}

/* Fix for the signup form to show only Google */
#logreg-forms .form-signup .social-login:first-child {
    display: none;
}

#logreg-forms .form-signup .social-login:last-child {
    display: block;
}

/* Mobile styles */
@media screen and (max-width: 500px) {
    #logreg-forms {
        width: 320px;
        padding: 30px;
        margin: 10vh auto;
    }
}

