/* =========================================
   SWAREX AUTHENTICATION
   ========================================= */

.swarex-auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

.swarex-auth-box {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}


/* Header */

.swarex-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.swarex-auth-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.swarex-auth-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
}


/* Form */

.swarex-auth-form {
    width: 100%;
}


/* Fields */

.swarex-field {
    margin-bottom: 20px;
}

.swarex-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}

.swarex-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.swarex-field input:focus {
    border-color: #80c41c;
    box-shadow: 0 0 0 3px rgba(128, 196, 28, 0.12);
}

.swarex-field input::placeholder {
    color: #999999;
}


/* Terms */

.swarex-terms {
    margin: 5px 0 20px;
}

.swarex-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.swarex-terms input {
    margin-top: 3px;
}

.swarex-terms a {
    color: #65a900;
    text-decoration: none;
}

.swarex-terms a:hover {
    text-decoration: underline;
}


/* Submit button */

.swarex-submit-btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #80c41c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.swarex-submit-btn:hover {
    background: #6eab15;
}

.swarex-submit-btn:active {
    transform: translateY(1px);
}


/* Messages */

.swarex-form-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.swarex-form-message.success {
    display: block;
    background: #edf8e2;
    color: #3f7110;
    border: 1px solid #cce6ad;
}

.swarex-form-message.error {
    display: block;
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f2c0c0;
}


/* Footer */

.swarex-auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

.swarex-auth-footer a {
    color: #65a900;
    font-weight: 600;
    text-decoration: none;
}

.swarex-auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .swarex-auth-wrapper {
        padding: 30px 15px;
    }

    .swarex-auth-box {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .swarex-auth-header h2 {
        font-size: 26px;
    }

    .swarex-auth-header p {
        font-size: 14px;
    }

    .swarex-field {
        margin-bottom: 17px;
    }

}
/* OTP section */

#swarex-otp-section {
    width: 100%;
}

#swarex-resend-otp {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #65a900;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#swarex-resend-otp:hover {
    text-decoration: underline;
}

#swarex-verify-otp {
    margin-top: 5px;
}